更新题解

This commit is contained in:
YDZ
2019-08-21 20:56:58 +08:00
parent 710040b3da
commit ce6514a6e2
2 changed files with 2 additions and 0 deletions

View File

@ -31,4 +31,5 @@ Given a set of **distinct** integers, *nums*, return all possible subsets (th
## 解题思路
- 找出一个集合中的所有子集,空集也算是子集。且数组中的数字不会出现重复。用 DFS 暴力枚举即可。
- 这一题和第 90 题,第 491 题类似,可以一起解答和复习。

View File

@ -29,4 +29,5 @@ Given a collection of integers that might contain duplicates, ***nums***, retur
- 这一题是第 78 题的加强版,比第 78 题多了一个条件,数组中的数字会出现重复。
- 解题方法依旧是 DFS需要在回溯的过程中加上一些判断。
- 这一题和第 78 题,第 491 题类似,可以一起解答和复习。