You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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].
The text was updated successfully, but these errors were encountered:
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 sersortByHeight (a) = [-1, 150, 160, 170, -1, -1, 180, 190]
.The text was updated successfully, but these errors were encountered: