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.
The reference solution contains "invalid" JS code.
Test.assertDeepEquals
should be used, or better Node 10 + chai.The tests are creating global variables.
The tests should not print anything intrusively.
The user can modify the input.
situations where both price and dist are equal can still happen in the random tests. Would be better to actually specify the behavior and test for it.