Skip to content

Commit 80bf1d9

Browse files
change names
1 parent 60b5133 commit 80bf1d9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,8 @@ Your ideas/fixes/algorithms are more than welcome!
489489
|35|[Search Insert Position](https://leetcode.com/problems/search-insert-position/)|[Solution](../master/src/main/java/com/fishercoder/solutions/SearchInsertPosition.java)|O(n)|O(1)|Medium|Array
490490
|34|[Search for a Range](https://leetcode.com/problems/search-for-a-range/)|[Solution](../master/src/main/java/com/fishercoder/solutions/SearchForARange.java)|O(logn)|O(1)|Medium|Array, Binary Search
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
492-
|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
493-
|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
492+
|32|[Longest Valid Parentheses](https://leetcode.com/problems/longest-valid-parentheses/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_32.java)|O(n)|O(n)|Hard|Stack, DP
493+
|31|[Next Permutation](https://leetcode.com/problems/next-permutation)|[Solution](../master/src/main/java/com/fishercoder/solutions/_31.java)|O(n)|O(1)|Medium|Array
494494
|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
495495
|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

src/main/java/com/fishercoder/solutions/NextPermutation.java renamed to src/main/java/com/fishercoder/solutions/_31.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ If such arrangement is not possible, it must rearrange it as the lowest possible
1212
1,2,3 → 1,3,2
1313
3,2,1 → 1,2,3
1414
1,1,5 → 1,5,1*/
15-
public class NextPermutation {
15+
public class _31 {
1616
/**Leetcode has a very good article to illustrate this problem and with animation: https://leetcode.com/articles/next-permutation/
1717
* 1. if the array is already in decrementing order, then there's no next larger permutation possible.
1818
* 2. if not, start from the end of the array, find the first pair of numbers that break the decrementing order

src/main/java/com/fishercoder/solutions/LongestValidParentheses.java renamed to src/main/java/com/fishercoder/solutions/_32.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1010
Another example is ")()())", where the longest valid parentheses substring is "()()", which has length = 4.
1111
*/
12-
public class LongestValidParentheses {
12+
public class _32 {
1313
public int longestValidParentheses(String s) {
1414
int result = 0;
1515
Stack<Integer> stack = new Stack();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy