โ† Amazon questions

Find missing number and debug code snippet

Filed under Amazon

Given an array of size n-1 containing distinct integers from 1 to n, find the missing number. Additionally, analyze and debug a provided buggy code snippet to correct logical or syntax errors.

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.