[프로그래머스 정렬] (level1) 1번 - K번째 수
·
PS/알고리즘
1. 그냥.. 임시로 담고, 임시로 담은거 정렬 그다음 K번째 위치. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 #include #include #include using namespace std; vector solution(vector array, vector commands) { vector answer; vector newArr; for (vector newComm : commands){ for (int i = newComm[0]-1; i