10000 edit 29 and 30 · deepakavs/Leetcode@60b5133 · GitHub
[go: up one dir, main page]

Skip to content

Commit 60b5133

Browse files
edit 29 and 30
1 parent d0df77c commit 60b5133

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,8 @@ Your ideas/fixes/algorithms are more than welcome!
491491
|33|[Search in Rotated Sorted Array](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_33.java)|O(logn)|O(1)|Medium|Binary Search
492492
|32|[Longest Valid Parentheses](https://leetcode.com/problems/longest-valid-parentheses/)|[Solution](../master/src/main/java/com/fishercoder/solutions/LongestValidParentheses.java)|O(n)|O(n)|Hard|Stack, DP
493493
|31|[Next Permutation](https://leetcode.com/problems/next-permutation)|[Solution](../master/src/main/java/com/fishercoder/solutions/NextPermutation.java)|O(n)|O(1)|Medium|Array
494-
|30|[Substring with Concatenation of All Words](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Solution](../master/src/main/java/com/fishercoder/solutions/SubstringwithConcatenationofAllWords.java)|O(n^2)|O(n)|Hard| HashMap
495-
|29|[Divide Two Integers](https://leetcode.com/problems/divide-two-integers/)|[Solution](../master/src/main/java/com/fishercoder/solutions/DivideTwoIntegers.java)|O(?)|O(?)|Medium|
494+
|30|[Substring with Concatenation of All Words](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_30.java)|O(n^2)|O(n)|Hard| HashMap
495+
|29|[Divide Two Integers](https://leetcode.com/problems/divide-two-integers/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_29.java)|O(?)|O(?)|Medium|
496496
|28|[Implement strStr()](https://leetcode.com/problems/implement-strstr/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_28.java)|O(n)|O(1)|Easy| String
497497
|27|[Remove Element](https://leetcode.com/problems/remove-element/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_27.java)|O(n)|O(1)| Easy |
498498
|26|[Remove Duplicates from Sorted Array](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_26.java)|O(n)|O(1)|Easy| Array

src/main/java/com/fishercoder/solutions/DivideTwoIntegers.java renamed to src/main/java/com/fishercoder/solutions/_29.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
If it is overflow, return MAX_INT.
77
*/
8-
public class DivideTwoIntegers {
8+
public class _29 {
99

1010
public int divide(int dividend, int divisor) {
1111
if (divisor == 0 || (dividend == Integer.MIN_VALUE && divisor == -1))
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
import java.util.List;
66

77
/**
8-
* You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation of each word in words exactly once and without any intervening characters.
8+
* You are given a string, s, and a list of words, words,
9+
* that are all of the same length.
10+
* Find all starting indices of substring(s) in s
11+
* that is a concatenation of each word in words exactly once and without any intervening characters.
912
1013
For example, given:
1114
s: "barfoothefoobarman"
@@ -14,7 +17,7 @@
1417
You should return the indices: [0,9].
1518
(order does not matter).
1619
*/
17-
public class SubstringwithConcatenationofAllWords {
20+
public class _30 {
1821

1922
public List<Integer> findSubstring(String S, String[] L) {
2023
ArrayList<Integer> res = new ArrayList();

0 commit comments

Comments
 (0)
0