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.
with spoiler flag, then
This comment is hidden because it contains spoiler information about the solution
Hi, i am pretty new on codewars. I have tried this kata but I am always time out... I have tried several different approach but can't find how to reduce the cost of the algorithm... Would not mind for some suggestions. I do not know if I need to post my code.