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 1ba8c56 commit 0e55211Copy full SHA for 0e55211
combination-sum/heozeop.cpp
@@ -1,5 +1,7 @@
1
-// Time Complexity: O(n^2)
2
-// Spatial Complexity: O(n);
+// Time Complexity: O(n^target);
+// - target에 비례하는 tree 깊이에 따라 n번 순회 발생
3
+// Spatial Complexity: O(target);
4
+// - target에 비례하는 visited vector, answer vector만 있으면 됨.
5
6
class Solution {
7
public:
0 commit comments