File tree Expand file tree Collapse file tree 1 file changed +0
-34
lines changed
Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Original file line number Diff line number Diff line change @@ -55,40 +55,6 @@ Output:
5555JavaScript Code:
5656
5757``` js
58- /*
59- * @lc app=leetcode id=90 lang=javascript
60- *
61- * [90] Subsets II
62- *
63- * https://leetcode.com/problems/subsets-ii/description/
64- *
65- * algorithms
66- * Medium (41.53%)
67- * Total Accepted: 197.1K
68- * Total Submissions: 469.1K
69- * Testcase Example: '[1,2,2]'
70- *
71- * Given a collection of integers that might contain duplicates, nums, return
72- * all possible subsets (the power set).
73- *
74- * Note: The solution set must not contain duplicate subsets.
75- *
76- * Example:
77- *
78- *
79- * Input: [1,2,2]
80- * Output:
81- * [
82- * [2],
83- * [1],
84- * [1,2,2],
85- * [2,2],
86- * [1,2],
87- * []
88- * ]
89- *
90- *
91- */
9258function backtrack (list , tempList , nums , start ) {
9359 list .push ([... tempList]);
9460 for (let i = start; i < nums .length ; i++ ) {
You can’t perform that action at this time.
0 commit comments