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.
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
Прикольна ката, дякую
I approached same this way
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.
If you do not know why you are not passing the kata, do not post as an issue, instead post as a question.
The error messages tells you what's going on:
As you can see, your sequence is not reversed.
Reading the error suggests that when reading the
tests.py
file, at ln 2, there's a function call for a function namedreverse_seq
but there's no function defined in thesolution.py
file. In other words, the tests are trying to use a function calledreverse_seq
but there's no function in your proposed solution that has that name.Make sure the name of your function matches the name of the function that's being used in the test cases.
Approved
fixed in latest fork
python new test framework is required. updated in this fork
python new test framework is required. updated in this fork
awesome, i never would have thought of it that way.
python new test framework is required. updated in this fork
Approved
Loading more items...