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.
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
python new test framework is required. updated in this fork
In Scala, the output type of the function is Int instead of Seq[Int], which causes an error if you don't modify/remove it. => Conflict with required test output
Nice idea but the description is lacking import informations :
random
library.Scala: incorrect result type in the initial solution.
Language: C++
Test suit missing the required header
std::vector
Loading more items...