Skip to content

Commit

Permalink
Update 0077. 组合.md
Browse files Browse the repository at this point in the history
  • Loading branch information
itcharge committed Sep 12, 2021
1 parent 9982e61 commit b6e8e6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Solutions/0077. 组合.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

## 解题思路

租合问题通常可以用回溯算法来解决。定义两个数组 res、path。res 用来存放最终答案,path 用来存放当前符合条件的一个结果。再使用一个变量 start_index 来表示从哪一个数开始遍历。
组合问题通常可以用回溯算法来解决。定义两个数组 res、path。res 用来存放最终答案,path 用来存放当前符合条件的一个结果。再使用一个变量 start_index 来表示从哪一个数开始遍历。

定义回溯方法,start_index = 1 开始进行回溯。

Expand Down

0 comments on commit b6e8e6b

Please sign in to comment.