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.
data[0] = 78 > 20 = data[14]
If
i = 0
andj = 14
thendata[i] <= data[j]
is false, asdata[i] = 78
. Thusj - i
is not to be considered.If conversely
i = 14
andj = 0
thendata[i] <= data[j]
is true. Howeverj-i = 0-14 = -14 < 0
, which means it is not the maximum.(We are supposed to find the maximum
j-i
withdata[i] <= data[j]
, not the maximumabs(j-i)
)What do you want to be checked? I saw that you passed the kata... Furthermore asking for something is not an issue, sorry!