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.
Does it need the enumerate command? I think my solutuon was similiar without it, is there any performance bennefit either direction?
The setup for the kata seems to imply that the list is supposed to modified and returned, rather than used as the basis for a new list.
If you iterate a list while modify it sometimes it gives strange outputs.
Complexity, guys, complexity - O(N * N)
Feeling like a loop <3
i feel so dumb after seeing this
Thanks
Great stuff :)
I am so sorry, new to the site. My bad.
Use spoiler flag next time, your post was visible in the homepage.
This comment is hidden because it contains spoiler information about the solution
I feel it should be noted that modifying an array during iteration is very much not a best practice in Python.
This comment is hidden because it contains spoiler information about the solution
very good solution
great and clear
Loading more items...