프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr ✓ 풀이과정function solution(players, callings) { const answer = [...players]; for (const player of callings) { let index = answer.indexOf(player); [answer[index - 1], answer[index]] = [answer[index], answer[index - 1]]; } return answer;} 첫 시도는 불린 선수들의 위치를 찾아서 상위 랭크 선수와 위치만 교체하면 되겠다고 생각했는데index를 찾기 위해 사용한 indexO..