You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: solution/0300-0399/0377.Combination Sum IV/README_EN.md
+44-6
Original file line number
Diff line number
Diff line change
@@ -46,9 +46,10 @@ Note that different sequences are counted as different combinations.
46
46
<p> </p>
47
47
<p><strong>Follow up:</strong> What if negative numbers are allowed in the given array? How does it change the problem? What limitation we need to add to the question to allow negative numbers?</p>
48
48
49
-
50
49
## Solutions
51
50
51
+
Dynamic programming.
52
+
52
53
`dp[i]` represents the number of element combinations whose sum is `i`.
53
54
54
55
<!-- tabs:start -->
@@ -58,13 +59,13 @@ Note that different sequences are counted as different combinations.
0 commit comments