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
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.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
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.
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.
This comment is hidden because it contains spoiler information about the solution
Javascript version, when we are inside the for loop and pushing "array.push(i)" into the array, while its doing all the iterations where does the 'i' get stored before being inputed into the array since the 'return array' is after all the iterations?
Loading more items...