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.
Yeah! Now, I see that I could use "prev" variable instead "char" to return final result. It would be more sophisticated solution. Thanks for help!
You are not making use of the functionality of reduce (the accumulator or initial value is left unused). But it's nice to see someone else using reduce for this :-) Feel free to look at my solution how to use the accumulator.
Hard to find solutions from people who actually know what they are doing. Good job!