class Solution: def spiralOrder(self, matrix: List[List[int]]) -> List[int]: if not matrix: return [] directions = [(0, 1), (1, 0), (0, -1), (-1, 0)] cur_direction = 0 r = c = 0 res = [] for _ in range(len(matrix) * len(matrix[0])): res.append(matrix[r][c]) matrix[r][c] = None next_r = r + direct...