โ† Zomato questions

Previous smaller element

Filed under Zomato

The question

Find the nearest previous smaller element for every element in an array. If no smaller element exists to the left, return -1.

No write-up yet. Related questions below have one.

Related Zomato questions

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