🎆문제 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! Example For a = [-1, 150, 190, 170, -1, -1, 160, 180], the output should be sortByHeight(a) = [-1, 150, 160, 170, -1, -1, 180, 190]. 🎇풀이 - Hidden Test 1개 실패 Hidden Test 한 문항을 통과하지 못했다.. 어떤 것 때문일까? ✨다른 풀이 여기에선 shift()메서드를 사용했다. aFiltered에는 -1을