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.
Take x=1 and y=2 for example, if (x+1 equals y), then it means x and y are consecutive, which is the condition we are verifying.
Some other ways to do the same operation would be:
y-x = 1,
x-y = -1,
y-1 = x.
after see code 3 hours, i understand :)
can you explain to me arr[n] + 1 meaning?