[Programmers] k번째 수
programmers.co.kr/learn/courses/30/lessons/42748 코딩테스트 연습 - K번째수 [1, 5, 2, 6, 3, 7, 4] [[2, 5, 3], [4, 4, 1], [1, 7, 3]] [5, 6, 3] programmers.co.kr Java import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class Solution { public int[] solution(int[] array, int[][] commands) { int[] answer = new int[commands.length]; List tempList = new ArrayList(); for(int[] arr :..
2020. 10. 3.