CodingMedium
Maximize value of |A[i] - A[j]| + |i - j|
Filed under Razorpay
The question
Given an array, find the maximum value of the expression |A[i] - A[j]| + |i - j|.
No write-up yet. Related questions below have one.
Related Razorpay questions
Collected from public candidate posts and coding forums. Updated Nov 2026.