Back to QuestionsPractice with This Question
Queue Reconstruction by Height
102.9K views•Asked at Stripe•
Medium
Question Explain
You are asked to reconstruct a queue of people based on their height and the number of people in front of them who are taller or the same height. Use a Greedy approach combined with sorting.
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.