-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
Algumas pessoas estão em uma fila no parque. Existem árvores entre eles que não podem ser movidas. Sua tarefa é reorganizar as pessoas por suas alturas em uma ordem não decrescente, sem mover as árvores. As pessoas podem ser muito altas!
Para a = [-1, 150, 190, 170, -1, -1, 160, 180]
, a saída deve ser
sortByHeight (a) = [-1, 150, 160, 170, -1, -1, 180, 190]
.
Metadata
Metadata
Assignees
Labels
No labels