Skip to content

Commit 47efdd1

Browse files
authored
Update Subsets.swift
1 parent b9fc072 commit 47efdd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DFS/Subsets.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ class Subsets {
2121
private func _dfs(inout res: [[Int]], inout _ path: [Int], _ nums: [Int], _ index: Int) {
2222
// termination case
2323

24-
res.append(Array(path))
24+
res.append(path)
2525

2626
for i in index..<nums.count {
2727
path.append(nums[i])
2828
_dfs(&res, &path, nums, i + 1)
2929
path.removeLast()
3030
}
3131
}
32-
}
32+
}

0 commit comments

Comments
 (0)