← Amazon questions
CodingReported in a candidate post, Jul 2025

Next greater element

Filed under Amazon · Also reported at Accolite, Adobe, Belzabar Software, Cadence, CouponDunia, Delhivery, Evive, Expedia and 25 more

Given an array of integers nums, find the next greater element for every element. The next greater element of nums[i] is the first element to its right that is strictly greater than nums[i]. If none…

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.