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.
Yeh, I agree
Well, you can do it in O(n) but even simpler is just to exit early if len(walk) is not 10. Then it doesn't matter how long the list is, you will only ever iterate over it if the length is 10. Therefore, any difference in efficiency will be insignificant.
Not all kata are designed for interview.
If you expect all solutions to be prod-ready, you are not on the right website.
Here is a suggestion to learn from this solution: you should ask for explanations politely.
It may bring you more insights than complaining.
Good point...