← Amazon questions
CodingReported in a candidate post, Feb 2020

Next smaller element

Filed under Amazon · Also reported at Accenture

Given an array of integers, find the next smaller element for each element in the array. The next smaller element for an element x is the first element to its right that is strictly smaller than x. If…

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

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