[프로그래머스]공 던지기

박예림·2023년 4월 19일
0

코테

목록 보기
70/132

class Solution {
    public int solution(int[] numbers, int k) {
        return numbers[2*(k-1)%numbers.length];
        //규칙을 찾고 그대로 코드 구현하기
    }
}
profile
응애 나 아기개발자

0개의 댓글