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.
Updated tests in JS and TS:
The number of tests has been reduced; attempted to make the tests more demanding in terms of performance.
Cool, thank you!
it is just attempt of code golfing: https://en.wikipedia.org/wiki/Code_golf
Should not be done for PROD ))
adjusted tests for TS as well
I reverted those changes, slightly adjusted test cases, and increased number of tests.
This comment is hidden because it contains spoiler information about the solution
Thanks for suggestion! Added comments to test cases on how they were created.
if it is impossible you should take smaller numbers for which solution is possible
updated tests in JS to be same as in Python
Fixed: added those 2 test cases.
This comment is hidden because it contains spoiler information about the solution
Something is wrong with JS (probably not all details are presented in decription). Just 10 tests passed, rest just missing some +/- 10-20 KM.
For kata from issue (as second duplicated) code works fine.
It has 4-th level just because of some wierd roundings somewhere.
It was a bit hard to understand the task. Thanks for comments I understood that we always should remove candidates who got least amount of votes (0 or more). Then all tests passed.
Really good one!
Thank you for suggestion, added to description + tags!
Loading more items...