Available question text
Given pairs (h, k) where k is the number of people with height >= h standing in front of that person, reconstruct the queue ordering that satisfies all constraints. This is a greedy/reconstruction problem typically solved by processing taller people first and inserting each person at position k to preserve the counts.
Related questions
Continue with questions that share topics or the same question type.
- Average Height of Buildings in Each Segment
Coding
- Design a Deque (Double-Ended Queue)
Coding
- Design Bounded Blocking Queue
Coding
- Design Circular Queue
Coding · Array · Design · Linked List
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
Anduril
Leetcode 406. Queue Reconstruction by Height
Reported Aug 3, 2026 · 1 source report
MID_LEVEL
Source snapshot: Nov 12, 2026
View source