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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Don't worry, it will come.... Solving many more katas from 8kyu and 7kyu to fully understand the basics and learning from the solutions other users provided (the comments are very helpful too), helped me a lot. I'm now somewhat satisfied with some of the solutions I´m providing (only some, but I still hope). Practice, practice, practice :)
Could someone please explain the complexity of my code? Is it anyhow efficient?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Unfortunately, the above code results to Execution Time Out, maybe due to tests with extremely long arrays, which were added afterwards.
This will only work with Python 2.
This comment is hidden because it contains spoiler information about the solution
Python won't execute the for loop if names is empty and will return empty list. Someone correct me if I'm wrong.