← Amazon questions

Find the smallest positive number missing from an unsorted array

Filed under Amazon · Also reported at FactSet, Freshworks, Oracle, SAP

Given an unsorted integer array, find the smallest positive integer that is missing from the array in O(n) time and O(1) extra space.

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.