K번쨰수1 [Lv.1] K번째수 package Lv_1; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class K번째수 { public static int[] solution(int[] array, int[][] commands) { int[] answer = new int[commands.length]; for (int i = 0; i < commands.length; i++) { List tmp = new ArrayList(); for (int j = commands[i][0]; j 2023. 1. 24. 이전 1 다음