
Java 프로그래머스 코딩테스트 입문 Day 8 배열, 구현, 수학
·
📌Back-End/프로그래머스
배열 자르기 /** * 코딩테스트 입문 Day 8 배열, 구현, 수학 * 배열 자르기 */public class Main1 { public static void main(String[] args) { int[] result = solution(new int[]{1, 2, 3, 4, 5}, 1, 3); for (int num : result) { System.out.print(num + " "); } System.out.println(); result = solution(new int[]{1, 3, 5}, 1, 2); for (int num : result) { System.out.pr..