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.
Thanks for clarification :D
Better to populate evens and odds in one go. Then 2 times less computations :)
Looks simple :) Although if I am not mistaken this algorythm has O(n^2) complexity – for each letter we have to go through the entire string. For larger strings it will be inefficient
Nice solution!
Oh wow. Really clever!
Added Swift translation
https://www.codewars.com/kumite/5fe648baa9db030026cc0987?sel=5fe648baa9db030026cc0987