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.
chatgpt (not to be offensive)
Short n clear!
I think a best practice is to always use a Named function instead of an Arrow function for easy error location and handling.
Needs a test case where the difference of the distance calculated from two phones is greater than 1000 meters (there is only a test for when their sum is less than 1000 meters).
oh, ok. thanks for answering
For fun.
why replace function with a constant?
spoiler flag please! :/
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Cool solution! Deserves more clever points, IMHO
I'm not sure if it can be considered as cheating.
no
This solution is actually fast. I ran double(30, 20000) for the above solution and my solution without the "if b > 0.00000000001" part. my solution took 565ms wheras above solution took 165ms.same code but way faster.
This comment is hidden because it contains spoiler information about the solution
Loading more items...