DIY: Queue Reconstruction by Height
Understand how to reconstruct a queue given height and position constraints for each person. This lesson helps you implement the reconstruct_queue function that returns a correctly ordered queue based on the input array's attributes.
We'll cover the following...
We'll cover the following...
Problem statement
In this problem, you are given an array of people, which has the attributes of a few people in a queue. Here, each people[i] = [hi, ki], where the ith array contains hi as the height of the ith person and ki ...