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.
I still used "".join() thinking I was handling lists. but it works with strings too
You don't need to do that actually, if the slice range doesn't exist, it just returns an empty string
I was very confused about that too. Late reply I know but still
Well done !!!
I really like this one
If there are several items which value is equal to diff, what will it return?
I forgot about this method are you kidding me
That increases the complexity to O(n^2). This is the best version with O(n) complexity.
Wow, Python. You surprised me again.
158+ like him
same ans but took me 5mins
I wanted to do that but I was too lazy to search on how to use map func
bro for me you also need to write if len(s) == 2: return " " i think it would be better and nice
This comment is hidden because it contains spoiler information about the solution
Loading more items...