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 ca06932 commit 0160a7bCopy full SHA for 0160a7b
combination-sum/bemelon.py
@@ -1,4 +1,9 @@
1
class Solution:
2
+ # Space complexity: O(n)
3
+ # - n: len(candidates)
4
+ # - Stack Frame -> O(n)
5
+ # - list_of_combination -> O(n) ?
6
+ # Time complexity: O(n!)
7
def combinationSum(self, candidates: List[int], target: int) -> List[List[int]]:
8
list_of_combination = []
9
n = len(candidates)
0 commit comments