[Programmers/์ฝ๋ฉํ
์คํธ์ฐ์ต/์ ๋ ฌ] 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; public int[] solution(int[] array, int[][] commands) { int[] answer = new int[commands.length]; for(int i=0; i
2020. 8. 30.