Search
⌘K

Leetcode 448. Find All Numbers Disappeared in an Array

Given an array nums of length n where each value is in [1,n], return all integers in [1,n] that are missing from nums. The core challenge is to identify absent values in O(n) time and O(1) extra space by leveraging the array itself (e.g., treating values as indices or marking visited positions).

Asked at:

Amazon

Amazon


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Early April, 2025

Amazon

Amazon

Senior

Comments

Your account is free and you can post anonymously if you choose.