You are given an array people, representing attributes of individuals standing in a queue. Each element people[i] h_i, k_i] describes a person of height h_i who has exactly k_i other people in front of them with a height greater than or equal to h_i.
Reconstruct and return the queue such that every person is placed in an order satisfying their height and positional requirements.
Constraints:
people.length
h_i
k_i people.length
It is guaranteed that the queue can be reconstructed.
You are given an array people, representing attributes of individuals standing in a queue. Each element people[i] h_i, k_i] describes a person of height h_i who has exactly k_i other people in front of them with a height greater than or equal to h_i.
Reconstruct and return the queue such that every person is placed in an order satisfying their height and positional requirements.
Constraints:
people.length
h_i
k_i people.length
It is guaranteed that the queue can be reconstructed.