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.
Mutating the list on the run time is a good idea?
Oh right, I get it thanks.
This comment is hidden because it contains spoiler information about the solution
Same
I originally thought my solution was clever, but after reading these comments I now see it has poor time complexity :(
This makes me think about why I make things harder than it should be
Didn't think my answer would be the first one :0
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 :)
Loading more items...