41. 공 던지기 class Solution { public int solution(int[] numbers, int k) { int answer = 1; for(int i=1; inumbers.length) answer -= numbers.length; } return answer; } } 던지는 사람은 1번째부터 시작하기 때문에 answer을 1로 초기화해 주었다. 42. 배열 회전시키기 class Solution { public int[] solution(int[] numbers, String direction) { int[] answer = new int[numbers.length]; if(direction.equals("right")){ for(int i=0; i