We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b5c910 commit 33fa752Copy full SHA for 33fa752
C++/combination-sum-iv.cpp
@@ -4,7 +4,7 @@
4
class Solution {
5
public:
6
int combinationSum4(vector<int>& nums, int target) {
7
- vector<int> dp(target + 1, 0);
+ vector<uint32_t> dp(target + 1, 0);
8
dp[0] = 1;
9
sort(nums.begin(), nums.end());
10
0 commit comments