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.
😳
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
@fran496: no, but they're iterable objects that support indices, just like lists - except every element in a string is a single character. This means most of the syntax elements that can be used on lists can be used on strings as well.
except for mutating elements, you can do that with lists but not with strings
the kata specifies you don't have to deal with those
( JS )
No
items
method is required ( now. it may have been back then ).but it requires the operators not to change. how does this still work without evaluating the postion and use of the operator
this has got to be in the top 5 worst kata of all time
Efficiently done!
thanks, elegant !
Loading more items...