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.
Nice glad you enjoyed it. The top solution on the solutins page has a nice explanation.
Thanks again, I just submitted it :)
And it works like that, but it wasn't marked, I marked it.
Sorry new to codewars! Ill delete the comment. I thought marking it as "spoiler" meant it couldnt be seen by those who havent completed it, based on another thread I read
Have a read below if you are stuck 👍
ok, Thank You.
That is because there is a more efficient way to solve this problem than your code. It's not about number of lines, it's about how many times you iterate through the input. You should not use any for loops.
And in future this is a question not an issue because it is a problem with your code.
Hi, My code(15 lines) passes all the tests, yet I get "Execution Timed Out (12000 ms)" when attempting to submit it?
davidmbedford, please don't post solutions in Discourse.
:D
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution