mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-10 20:40:39 +08:00
@ -149,6 +149,7 @@ public:
|
|||||||
Java:
|
Java:
|
||||||
```java
|
```java
|
||||||
class Solution {
|
class Solution {
|
||||||
|
|
||||||
List<List<Integer>> result = new ArrayList<>();// 存放符合条件结果的集合
|
List<List<Integer>> result = new ArrayList<>();// 存放符合条件结果的集合
|
||||||
LinkedList<Integer> path = new LinkedList<>();// 用来存放符合条件结果
|
LinkedList<Integer> path = new LinkedList<>();// 用来存放符合条件结果
|
||||||
boolean[] used;
|
boolean[] used;
|
||||||
@ -167,9 +168,6 @@ class Solution {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (int i = 0; i < nums.length; i++){
|
for (int i = 0; i < nums.length; i++){
|
||||||
// if (path.contains(nums[i])){
|
|
||||||
// continue;
|
|
||||||
// }
|
|
||||||
if (used[i]){
|
if (used[i]){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user