K번째 수
-
[Algo Rhythm🕺💃] 프로그래머스 고득점 Kit K번째 수Algo Rhythm🕺💃/Programmers 2020. 6. 25. 12:00
문제 설명 문제는 아래 링크에서 확인하시길 바랍니다. 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[] answer = new int[commands.length]; for(int a = 0; a < commands.length; a++) { int i = commands[a]..