โ† Amazon questions

Smallest Value in Array Larger Than X

Filed under Amazon

Given an array of integers and a target value X, find the smallest element in the array that is strictly greater than X. Implement the solution using sorting and binary search.

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.