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.
Scala translation
CoffeeScript translation
python new test framework is required. updated in this fork
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/93 Please join the discussion to help us identify duplicate kata and retire them.
Description is broken
JS: Node v14 should be used along with its appropiate assertion tools (Mocha + Chai).
Refer to this and this
people
are always sorted at least in JS. Either it should be specified in the description or tests with unorderedpeople
should be added.ok..there are only 99 people in party. then where does 182 come from ?? (182, [200, 334])
you need to refactor unit tests, made them more readable
For 6 kyu I suggest to add a performance test, e.g.:
*evil grin*
Oh, and using
Test.expect
is not advised, useTest.assert_equals
instead!This comment is hidden because it contains spoiler information about the solution
IMO would make more sense if the Java translation was returning a
Set
instead of aList
.FYI - the Java test asserts are all backwards. Should be expected/actual.