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.
@xcthulhu, please take a look at my new solution. It passes 1862 tests but it still times out.
Thank you.
Any tips on how to solve this without combinatory? I'm stuck here.
I think this test is wrong:
Test.assert_equals(knapsack(100, [[1, 1],
[3, 4]]), [1, 33])
It should be:
Test.assert_equals(knapsack(100, [[1, 1],
[3, 4]]), [100])
Am I misunderstanding the greedy solution?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
@xcthulhu, I can't post a kumite because I haven't earned the right to see the solutions of the kata (because I cannot solve it).
I have the same problem here that I find in another kata. My solution passes the tests, when I click submit it won't go through. The error I get is that it takes more than 6000 miliseconds. I believe my solultion is O(n).
Shall I post it here to discuss it?
I pass the test when I click "Run Test". But when I click submit I get this error:
None should equal ['22', '38']
It seems submitting runs other tests that I can't see.
Is it possible to see those tests too?
Typo: "You task". It should say "Your task".
Following PEP8, it should be get_value and not getValue.