MapleStory Finger Point

๐Ÿƒ‍โ™€๏ธprogrammers/Java

ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค - java n๋ฒˆ์งธ ์›์†Œ๊นŒ์ง€

HYEJU01 2024. 5. 1. 14:19

๐Ÿ’ก ์ •๋ง ๊ฐ„๋‹จํ•œ ๋ฌธ์ œ ..!! n ๋งŒํผ ์ง„ํ–‰์‹œ์ผœ์ฃผ๊ณ  ๊ทธ๋งŒํผ ์ถœ๋ ฅํ•ด์ฃผ๋ฉด ๋!

class Solution {
    public int[] solution(int[] num_list, int n) {
        int[] answer = new int [n];
        
        for (int i = 0 ; i < n; i++){
            answer[i] = num_list[i];
        }
        
        return answer;
    }
}