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
Really cool ! My solution is very cumbersome :( I hope with experience it will come!
This comment is hidden because it contains spoiler information about the solution
There are 5 similar answers here, so this is just a common thing among Pythoners.
This comment is hidden because it contains spoiler information about the solution
This is one of the most clever solutions I've seen on any Kata. Who cares how inefficient it is. God, Python is beautiful and you are an artist.
O(n^2 * logn) time complexity