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.
This comment is hidden because it contains spoiler information about the solution
Im very new to javascript so my solution is terribly ugly compared to this. Can you explain how yours is working? I don't even know where to start.
How to round it in JS ??
Nice shortcut.
Readability left the chat 🤣
amazing job tho ಠ_à²
Holy moly O_o
Same for me
Very nice. Thanks for this, I did not know that (following is LLM generated):
You can use JavaScript’s default parameters to add extra functionality. In this case, the 4th argument, which would be the array, is ignored (_), and instead, a default value is calculated based on the 3rd argument (c % 2)
Finally there is smth outstanding
I think yes, it should be optimized a bit
Most users voted 6 kyu, and the remaining ones voted 4 kyu. Oh boy, a proper reference scale is nowhere to be seen.
great, do you want the other method to consistently time out?
yes, it gives same answer as Dijkstra, but 10 times faster
Is this a guaranteed smallest number of steps algorithm?
Python: Random tests: 616 of 616 passed. Fixed tests 2 of 10 passed. How stupid is this 🤯 ?
Loading more items...