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.
ohh, i see, thanks!
Not sure if I can explain it clearly but I'll try:
Take a look at this sample input:
([78, 117, 110, 99, 104, 117, 107, 115], 100), false);
the key to understanding this is the 'return' keyword
using the condition 'if (i>limit)' return false, AS SOON AS a value is greater than 100, 'false' gets returned and STOPS the execution of the function
where as in 'if (i<=limit)', AS SOON AS a value is lower than 100, 'true' gets returned immediately and STOPS the function WITHOUT getting to test the remaining values in the array
This is just a list slice. Think of it like
arr[(i+1):]
, so it takes the list from the indexi+1
up to the end. More readingwhat does this mean please?
arr[i+1:]