Java 프로그래머스 코딩 기초 트레이닝 Day 15 리스트(배열), 문자열
·
📌Back-End/프로그래머스
조건에 맞게 수열 변환하기1  /** * 코딩 기초 트레이닝 Day 15 * 조건에 맞게 수열 변환하기 1 */public class Main1 { public static void main(String[] args) { int[] result = solution(new int[]{1, 2, 3, 100, 99, 98}); for (int num : result) { System.out.print(num + " "); } System.out.println(); } public static int[] solution(int[] arr) { int[] answer = new int[arr.length]; ..
구 일
'조건에맞게수열변환하기1' 태그의 글 목록