Given an array a of integers, find the maximum of j - i subjected to the constraint of a[i] <= a[j].
Answers
Answered by
2
Step-by-step explanation:
j-i= K
a[i] => a[j]
so,
j= i
k=0
Similar questions