![프로그래머스 Lv.0 배열 뒤집기](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FcDWu0N%2FbtsB7U3eUgU%2FmrTZWDad9O5gHyJsS7OxE1%2Fimg.png)
프로그래머스 Lv.0 배열 뒤집기개발자가 되기까지 (2023.08.16~2024.04.15)/[Algorithm] Programmers ver.Java2023. 12. 18. 01:01
Table of Contents
<Solution>
class Solution {
public int[] solution(int[] num_list) {
int[] answer = new int [num_list.length];
int j = 0;
for (int i = num_list.length-1; i >= 0; i--) {
answer[j] = num_list[i];
j++;
}
return answer;
}
}
728x90
@rlozlr :: 얼렁뚱땅 개발자
얼렁뚱땅 주니어 개발자
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!