We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f86c8b5 commit 6d46cb9Copy full SHA for 6d46cb9
K_equal_sum_subset.java
@@ -34,6 +34,6 @@ public boolean canPartitionKSubsets(int[] nums, int k) {
34
return false;
35
//visited array to keep track where an element is already a part of a subset or not
36
boolean visited[]=new boolean[nums.length];
37
- return helpInPartition(nums,visited,0,k,0,s/k);
+ return helpInPartition(nums,visited,0,k,0,sum/k);
38
}
39
0 commit comments