We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0601bb2 commit 45926d8Copy full SHA for 45926d8
src/main/java/com/fishercoder/solutions/_78.java
@@ -47,6 +47,7 @@ public static List<List<Integer>> subsets(int[] nums) {
47
}
48
49
public static class Solution2 {
50
+ /**This is the most straightforward solution and easy to follow.*/
51
public List<List<Integer>> subsets(int[] nums) {
52
List<List<Integer>> result = new ArrayList();
53
backtracking(result, new ArrayList(), nums, 0);
0 commit comments