inblog logo
|
goho
    알고리즘문제풀기

    [프로그래머스/JAVA]배열 뒤집기

    gov's avatar
    gov
    Nov 21, 2024
    [프로그래머스/JAVA]배열 뒤집기
    Contents
    문제풀이

    문제

    notion image

    풀이

    class Solution { public int[] solution(int[] num_list) { int[] answer = new int[num_list.length]; for(int i = 0; i <num_list.length; i++) { answer[num_list.length - i -1] = num_list[i]; } return answer; } }
    Share article

    goho

    RSS·Powered by Inblog