728x90 행렬 테두리 회전1 행렬 테두리 회전 (자바) class Solution { public static int[] solution(int rows, int columns, int[][] queries) { int[] answer = new int[queries.length]; int[][] board = new int[rows][columns]; for (int i = 1; i =topLeft[1] ; i--) { int move = board[topRight[0]][i]; board[topRight[0]][i+1] = move; minValue = Math.min(minValue,move); } // 왼쪽 이동 for (int i = topLeft[0]+1; i 2021. 9. 23. 이전 1 다음 728x90