프로그래머스/LEVEL 1
2022. 1. 19.
[프로그래머스/LEVEL1] K번째수
K번째수 문제 https://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 코드 import java.util.Arrays; class Solution { public int[] solution(int[] array, int[][] commands) { int[] result = new int[commands.length]; for (int i = 0; i < commands.length; i++) {// 행 int from_num = commands[i][0];// ~부터 int to_..