DIY: Queue Reconstruction by Height
Solve the interview question "Queue Reconstruction by Height" in this lesson.
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 i
th array contains hi
as the height of the i
th person and ki
...