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.
Do the same solution. So, vote for this as THE Best Practices. ))
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
have you solved your problem?
kcpadljmaşdsdmas çözüm aşırı verimsiz ztn best practices vermisler bi de
spli("") is default of split() without anything
if array's length smaller or equal to 1, It would return res=0.Otherwise test cases will be looking for another statement.If you don't insert any of them,It would return None
can sb explain that how does it work??
thanks <3
This comment is hidden because it contains spoiler information about the solution
range(1,len(arr) is to loop through array, starting from index 1 to the last index of array. why do you do this? because you need to check the condition from second index which is index 1 for example: arr[1] - arr[1-1] > 1: imagine if you start from index 0 if it will be like this arr[0] - arr[0-1] or arr[0] - arr[-1]
Are you sure?
Not efficient, but he use primitive types, not wrapper class. Is valid solution.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...