We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fe91ae commit 04f5dc4Copy full SHA for 04f5dc4
combination-sum/README.md
@@ -1,4 +1,12 @@
1
+## Apply DFS pattern
2
-## TODO
3
- * write down thinking
+See DFS pattern in [N-Queens](../n-queens)
4
5
+
6
+ * `steps`: choose a candidate number
7
+ * `choices each step`: 0..INFINITE times candidate number
8
+ * `possibility checker`: sum of current numbers is less than or equals to target number
9
10
+### Backtracking
11
12
+Remove the selected candidate number from steps.
0 commit comments