Skip to content

Commit 9ab7f5f

Browse files
authored
refactor: complexity of combination sum
1 parent 03ded85 commit 9ab7f5f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

combination-sum/minji-go.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
Problem: https://leetcode.com/problems/combination-sum/
33
Description: return a list of all unique combinations of candidates where the chosen numbers sum to target
44
Concept: Array, Backtracking
5-
Time Complexity: O(Nⁿ), Runtime 2ms
6-
Space Complexity: O(N), Memory 44.88MB
7-
8-
- Time Complexity, Space Complexity를 어떻게 계산해야할지 어렵네요 :(
5+
Time Complexity: O(Nᵀ), Runtime 2ms
6+
Space Complexity: O(T), Memory 44.88MB
97
*/
108
class Solution {
119
public List<List<Integer>> answer = new ArrayList<>();

0 commit comments

Comments
 (0)