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.
Same for me
I think yes, it should be optimized a bit
yes, it gives same answer as Dijkstra, but 10 times faster
Python: Random tests: 616 of 616 passed. Fixed tests 2 of 10 passed. How stupid is this 🤯 ?
This comment has been deleted.
shitty tests
I could not reproduce this issuie (maybe you know how to do it? ), but I slightly adjusted that function.
Added total number of tests, and test number for each test.
Reduced time of tests execution.
added edge cases to random cases
This comment is hidden because it contains spoiler information about the solution
Added fixed test for it, as well slightly adjusted random tests regarding this issue.
Adjusted that logic
Fixed.
Nice kata, too easy for 2kyu though
Updated description:
After you perform all the calculations round the result to cents (x.5 should be rounded up, less then x.5 should be rounded down) example: 10.545 ==> 10.55, 10.5449 ==> 10.54
Loading more items...