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.
Have a read below if you are stuck 👍
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.