13. 배열 뒤집기

김해준's avatar
Dec 03, 2025
13. 배열 뒤집기
문제
notion image
풀이
class Solution { public int[] solution(int[] num_list) { int[] answer = new int[num_list.length]; int index = 0; for(int i = num_list.length - 1; i >=0; i--) { answer[index] = num_list[i]; index++; } return answer; } }
notion image
 
Share article