[Programmers] Level1. K번째 수 (Java)
Level1. K번째 수 문제설명 ) 풀이Code ) 더보기 import java.util.ArrayList; import java.util.Collections; class Solution { public int[] solution(int[] array, int[][] commands) { int[] answer = new int[commands.length]; // commands 의 수 만큼 return 해줄 배열 선언 ArrayList list = new ArrayList(); // 정렬 편하게 하기위한 list 생성 for (int i=0; i
알고리즘/Programmers
2021. 1. 1. 21:27