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.
python new test frameworks
Python: Something must have changed on the Leaderboards page since the tests expect not 0-based, not 1-based, but 2-based indexing.
I think it would be best if both reference solution and tests were updated to use specialized tools (BeautifulSoup?) to prevent this from happening again.
actual and expected solutions are swapped in random tests.
CoffeeScript:
Should use
mocha
+chai
instead of the deprecated Codewars Test FrameworkKata currently throws an error in the case of incorrect user solution.
Test 6 in the sample tests uses the following input
items = [(2, 3), (6, 5), (8, 2), (4, 5), (2, 8), (5, 5), (2, 2)], w_limit=7
and expects the following answer
[13, [[2, 3, 8], [5, 8]]]
.There are two different ways to pick items with values of
[5,8]
that weigh less than7
. It is not obvious that these two ways should be combined in the output.python new test framework is required. updated in this fork
C# translation
JavaScript translation
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/214.
Please join the discussion to help us identify duplicate kata and retire them.
python new test framework is required. updated in this fork
python new test framework is required. updated in this fork
python new test framework is required. updated in this fork
function name should be snake_case
Nice idea but the description is lacking import informations :
random
library.This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/162.
Please join the discussion to help us identify duplicate kata and retire them.
Loading more items...