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 4b4e9e5

Browse files
Update Readme.md
1 parent 248b8a7 commit 4b4e9e5

File tree

1 file changed

+2
-0
lines changed
  • DFS/698.Partition-to-K-Equal-Sum-Subsets

1 file changed

+2
-0
lines changed

‎DFS/698.Partition-to-K-Equal-Sum-Subsets/Readme.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,6 @@ for (int i=curPos; i<n; i++)
3939
4040
最终的答案就是考察state=(1<<n)-1时的dp值是否不为-1. (其实,如果dp值不为-1的话,它一定是0,因为我们预判了所有元素之和必然要被target整除)
4141
42+
该解法的时间复杂度是```2^n*n```.
43+
4244
[Leetcode Link](https://leetcode.com/problems/partition-to-k-equal-sum-subsets)

0 commit comments

Comments
(0)

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