Available question text
Count how many indices in the given heights array differ from the array sorted in non-decreasing order (the expected lineup). Values are small (1–100), so you can simply sort or use a counting-sort style frequency scan to compute mismatches efficiently.
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 1051. Height Checker
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source