ํ๋ก๊ทธ๋๋จธ์ค[Java] - ์ผ๊ฐ ๋ฌํฝ์ด
programmers.co.kr/learn/courses/30/lessons/68645 ์ฝ๋ฉํ
์คํธ ์ฐ์ต - ์ผ๊ฐ ๋ฌํฝ์ด 5 [1,2,12,3,13,11,4,14,15,10,5,6,7,8,9] 6 [1,2,15,3,16,14,4,17,21,13,5,18,19,20,12,6,7,8,9,10,11] programmers.co.kr ์ฝ๋ class Solution { public static int[] solution(int n) { if(n == 1) { return new int[] {1}; } int answerLen = 3; for(int i=3; i
2020. 9. 26.