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.
And what if the area code was, say, 4 digits long?
This comment is hidden because it contains spoiler information about the solution
Awesome!!! I am loving this place.
Me either, was expecting a clever mathematical trick ¯_(ツ)_/¯
This comment is hidden because it contains spoiler information about the solution
This solution is brilliant!I couldn't understand it until I saw your reply to Andrew.
Dude,cool!
Thanks a lot! It helps me very much!
This comment is hidden because it contains spoiler information about the solution
It may be that I'm missing something, but wouldn't this fail an array such as [0, 4, 6]? This function would return 5 if I'm not mistaken, not 2 as it should.
Nice kata! Learned a lot.
I got True with this input in my solution.
Nice kata!
It seems too easy for 3ku. Nice kata, anyway.
You must have ignored the keyword "least".
Back to the sample,the differences between 8 and 1 is greater than 5 and the distance between them is the longest.
So the answer is 2.
agree!
Loading more items...