[Programmers] 54. Spiral Matrix
Python class Solution: def spiralOrder(self, matrix: List[List[int]]) -> List[int]: answer = [] while matrix: answer += ma...
Python class Solution: def spiralOrder(self, matrix: List[List[int]]) -> List[int]: answer = [] while matrix: answer += ma...
SQL SELECT ANIMAL_ID, NAME FROM ANIMAL_INS
SQL SELECT I.ANIMAL_ID, I.NAME FROM ANIMAL_INS AS I, ANIMAL_OUTS AS O WHERE I.ANIMAL_ID = O.ANIMAL_ID ORDER BY O.DATETIME - I.DATETIME DESC LIMIT 2
Python def solution(sizes): answer = 0 min_size, max_size = [], [] for size in sizes: min_size.append(min(size[0], size[1])) max_...
SQL SELECT count(distinct name) FROM ANIMAL_INS WHERE NAME IS NOT NULL