Skip to content

Commit 86926c8

Browse files
edit 90
1 parent 253fc15 commit 86926c8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ Your ideas/fixes/algorithms are more than welcome!
473473
|93|[Restore IP Addresses](https://leetcode.com/problems/restore-ip-addresses/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_93.java)| O(1)|O(1) | Medium | Backtracking
474474
|92|[Reverse Linked List II](https://leetcode.com/problems/reverse-linked-list-ii/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_92.java)| O(n)|O(1) | Medium
475475
|91|[Decode Ways](https://leetcode.com/problems/decode-ways/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_91.java)| O(n)|O(n) | Medium| DP
476+
|90|[Subsets II](https://leetcode.com/problems/subsets-ii/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_90.java)|O(n^2) |O(1)|Medium|Backtracking
476477
|89|[Gray Code](https://leetcode.com/problems/gray-code/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_89.java)|O(n) |O(1)|Medium|Bit Manipulation
477478
|88|[Merge Sorted Array](https://leetcode.com/problems/merge-sorted-array/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_88.java)|O(max(m,n)) |O(1)|Easy|
478479
|87|[Scramble String](https://leetcode.com/problems/scramble-string/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_87.java)|O(?) |O(?)|Hard| Recursion

src/main/java/com/fishercoder/solutions/SubsetsII.java renamed to src/main/java/com/fishercoder/solutions/_90.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
import java.util.*;
66

7-
/** Given a collection of integers that might contain duplicates, nums, return all possible subsets.
7+
/**90. Subsets II
8+
*
9+
* Given a collection of integers that might contain duplicates, nums, return all possible subsets.
810
911
Note: The solution set must not contain duplicate subsets.
1012
@@ -20,7 +22,7 @@
2022
[]
2123
]
2224
*/
23-
public class SubsetsII {
25+
public class _90 {
2426

2527
public static List<List<Integer>> subsetsWithDup(int[] nums) {
2628
List<List<Integer>> result = new ArrayList();

0 commit comments

Comments
 (0)