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.
it's still important to instill those concepts so that when you get to the more difficult, complicated real world problems, those concerns are on your mind.
It's a trivial problem with no real implications outside the kata world. I think the servers will survive a little extra work... 1000 runs with this algorithm clocks in at 0.035s. Yours takes 0.023s less ;)
You’re every iteration making chars.sort for word. I think, it’s not good idea, because for every word in array (per iteration) - have sense to do this… But for incoming word (from params of method), - better - make word.chars.sort just once!