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: 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.
This comment is hidden because it contains spoiler information about the solution
A classic yet technical kata.
Oh no!
The name
object
is already used by theobject
classIn crying in the bathroom right now
I like your function to avoid counters, but is it really best practices? Isn't it more pythonian to name variables like station, stations and riders or something like that?
the function signature was wrong for Scala. It was returning Int instead of Seq[Int]
Interesting!!! Thanks alot
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
Loading more items...