更新图片链接
This commit is contained in:
4
problems/0078.子集.md
Normal file → Executable file
4
problems/0078.子集.md
Normal file → Executable file
@@ -46,7 +46,7 @@
|
||||
|
||||
以示例中nums = [1,2,3]为例把求子集抽象为树型结构,如下:
|
||||
|
||||

|
||||

|
||||
|
||||
从图中红线部分,可以看出**遍历这个树的时候,把所有节点都记录下来,就是要求的子集集合**。
|
||||
|
||||
@@ -70,7 +70,7 @@ void backtracking(vector<int>& nums, int startIndex) {
|
||||
|
||||
从图中可以看出:
|
||||
|
||||

|
||||

|
||||
|
||||
剩余集合为空的时候,就是叶子节点。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user