Back to Questions

Queue Reconstruction by Height

102.9K viewsAsked 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.

Practice with This Question
Queue Reconstruction by Height - Interview Question