given array a and b
find two indexes i and j so that a[i] > a[j], b[i] > b[j] and i - j is minimal
What are the constraints?
size <= 10^5
Can you give a judge link or anything of the sort?
given array a and b
find two indexes i and j so that a[i] > a[j], b[i] > b[j] and i - j is minimal
What are the constraints?
size <= 10^5
Can you give a judge link or anything of the sort?