← OYO questions

Max absolute difference between nearest left and right smaller elements

Filed under OYO

Given an integer array, find the maximum absolute difference between the nearest smaller element on the left and nearest smaller element on the right for all elements. Use 0 if no smaller element…

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 OYO questions

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