문제https://school.programmers.co.kr/learn/courses/30/lessons/42748 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr 문제 풀이 (Java)import java.util.*;class Solution { public int[] solution(int[] array, int[][] commands) { int[] answer = new int[commands.length]; for (int i = 0; i commands를 순회하며 다음 과정을 거친다. 1. i번째 숫자부터 j번째 숫자까지 자르기2. 자른 배열을 정렬3. k번째 있는 수를 answer에 저장 ..