Back to QuestionsPractice with This Question
Reconstruct Queue (Alternative Sort)
143.1K views•Asked at Meta•
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. Use a greedy approach with a non-standard sort.
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.