Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 248b8a7

Browse files
Update 698.Partition-to-K-Equal-Sum-Subsets_v2.cpp
1 parent b16426b commit 248b8a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎DFS/698.Partition-to-K-Equal-Sum-Subsets/698.Partition-to-K-Equal-Sum-Subsets_v2.cpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class Solution {
1919
}
2020
}
2121

22-
return dp[(1<<n)-1]==0;
22+
return dp[(1<<n)-1] != -1;
23+
2324
}
2425
};

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /