CodeSignal / Intro / Smooth Sailing (2/2)
ⅩⅡ. sort by Height Some people are standing in a row in a park. There are trees between them which cannot be moved. Your task is to rearrange the people by their heights in a non-descending order without moving the trees. People can be very tall! // 값이 -1 인 원소는 그대로 두고 나머지 값들을 오름차순으로 정렬해라 Example Fora = [-1, 150, 190, 170, -1, -1, 160, 180], the output should be sortByHeight(a) = [-1, 150, 160, 1..