Sort heights in a queue with trees (-1) fixed
Filed under Cvent
The question
Sort the heights of people in a queue in decreasing order without altering the positions of trees represented by -1.
No write-up yet. Related questions below have one.
Related Cvent questions
Collected from public candidate posts and coding forums. Updated Nov 2026.