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.
it took me some time until i figured the -1 and -2 to get the second form the last
i did that throws error had to check for string len 2 or 3
Same! TIL
A quick word of thanks - I actively learned from this. I appreciate all of you who put this answer in and helped make my code better. :)
i liked this pin
This comment is hidden because it contains spoiler information about the solution
crazy xD
😳
Here you sort ALL the 50 millions element and after you had to compare the digit (not linear for sur).
But all you have to do is to look element by element and find the first one who is not asc (linear).
Sorry for my english
damn, did the same thing but replaced -1 with len(arr) -1, yours is much simpler lol
Wow.. I made mine way more complicated
This is an excelent use of String Slicing in Python
This comment is hidden because it contains spoiler information about the solution
what is the use of underscore?
i didn't know that range function return a list . nice
Loading more items...