Available question text
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).
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2965. Find Missing and Repeated Values
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source