ํ๋ก๊ทธ๋๋จธ์ค[Java] - ํคํจ๋ ๋๋ฅด๊ธฐ(2020 ์นด์นด์ค ์ธํด์ญ)
programmers.co.kr/learn/courses/30/lessons/67256 ์ฝ๋ฉํ
์คํธ ์ฐ์ต - ํคํจ๋ ๋๋ฅด๊ธฐ [1, 3, 4, 5, 8, 2, 1, 4, 5, 9, 5] "right" "LRLLLRLLRRL" [7, 0, 8, 2, 8, 3, 1, 5, 7, 6, 2] "left" "LRLLRRLLLRR" [1, 2, 3, 4, 5, 6, 7, 8, 9, 0] "right" "LLRLLRLLRL" programmers.co.kr ์ฝ๋ class Solution { public static String solution(int[] numbers, String hand) { StringBuilder sb = new StringBuilder(); int leftIndex = 10; // '*' =>..
2020. 10. 3.
ํ๋ก๊ทธ๋๋จธ์ค[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.