Search
⌘K
Get Premium
Leetcode 2965. Find Missing and Repeated Values
Given an n×n grid containing numbers from 1 to n^2 where exactly one number appears twice and one number is missing, identify and return the repeated value a and the missing value b as [a, b]. This reduces to detecting the duplicate and absent elements in a bounded range 1..n^2 (n ≤ 50).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.