โ† Snapdeal questions

Max value of (j-i) where A[j] > A[i]

Filed under Snapdeal

Given an array of integers A, find the maximum value of (j - i) such that A[j] > A[i], running in O(N) time.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Snapdeal questions

Collected from public candidate posts and coding forums. Updated Nov 2026.