Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Got it, I didn't know that the toFixed method rounds the number. Thank you so much!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
You are missing a couple of possibilities. For example the grouping 91, 74, 85, 81 gives 331.
How can these inputs return 331?
I am failing in this test case:
t = 331, k = 4, ls = [ 91, 74, 73, 85, 73, 81, 87 ]
This is my list of sums : [ 323, 322, 330, 332, 305, 313, 315, 312, 314, 326 ] so I am returning 330. But the output is supposed to be 331.
I don't know how they get the sum of 331. Any ideas are appreciated. Thank you!