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.
so beautiful!
clean, but the intital split/filter repetition seems a bit high in performance cost and very reduceable.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
20 lines? 🙂
This comment is hidden because it contains spoiler information about the solution
Very nice approach, one downside is that the function modifies the input array parameter so it would be better to start by making a local copy to manipulate.
i did some crazy batsh*t to pass lol. wayyy behind this solution
but i feel that reading this makes me more aware of array methods for future katas!
Pretty clean, love it
This comment is hidden because it contains spoiler information about the solution
wow I feel so far from coming up with something like this
length of each element in the 2D array must equals length of 2D array itself. Is in the kata description
Or you could just use a.localeCompare(b) instead of trying to find the index.Misread that.I'd say the best say is
[...'abcdefghijklmnopqrstuvwxyz']
This solution don't work with this data
snail([[1,2,3,4], [16,17,18,5], [15,24,19,6], [14,23,20,7], [13,22,21,8], [12,11,10,9]])
This comment is hidden because it contains spoiler information about the solution
Loading more items...