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
I'm so fucking stupid, True if / else False wasn't even necessary.
@JChampt in my opinion, sorting is a bottleneck in your solution
Be wary of the in operator from your second to last line "if i not in len_list". As used, it requires len_list to be iterated through for each i which could be very slow for big inputs. Sorting len_list and walking through once in order would save a ton of time.
Check out my solution for an example. Cheers!
For everyone else wondering (or in case you still do) look here https://docs.python.org/3/library/urllib.parse.html#urllib.parse.quote
Nice code Jessica, love it
Just wondering how should we make it work in python3?