From c812d880bcaf57041b2c4336bde2a89d9d3df18c Mon Sep 17 00:00:00 2001 From: Won Joon Thomas Choi <113500771+724thomas@users.noreply.github.com> Date: Tue, 3 Nov 2026 23:13:47 +0900 Subject: [PATCH 1/3] Create copy --- .../\354\230\244\354\235\200\355\230\201/copy" | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 "leetcode3/\354\230\244\354\235\200\355\230\201/copy" diff --git "a/leetcode3/\354\230\244\354\235\200\355\230\201/copy" "b/leetcode3/\354\230\244\354\235\200\355\230\201/copy" new file mode 100644 index 000000000..917c84d4a --- /dev/null +++ "b/leetcode3/\354\230\244\354\235\200\355\230\201/copy" @@ -0,0 +1,13 @@ +# + +''' +1. 아이디어 : + + +2. 시간복잡도 : + O() + +3. 자료구조/알고리즘 : + + +''' From 27d04d402229e2ea7941582042d156e002ee4d60 Mon Sep 17 00:00:00 2001 From: oheunhyuck <71165142+oheunhyuck@users.noreply.github.com> Date: Tue, 3 Nov 2026 23:16:09 +0900 Subject: [PATCH 2/3] Create 1914. Cyclically Rotating a Grid --- .../1914. Cyclically Rotating a Grid" | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 "leetcode3/\354\230\244\354\235\200\355\230\201/1914. Cyclically Rotating a Grid" diff --git "a/leetcode3/\354\230\244\354\235\200\355\230\201/1914. Cyclically Rotating a Grid" "b/leetcode3/\354\230\244\354\235\200\355\230\201/1914. Cyclically Rotating a Grid" new file mode 100644 index 000000000..22c6a60dc --- /dev/null +++ "b/leetcode3/\354\230\244\354\235\200\355\230\201/1914. Cyclically Rotating a Grid" @@ -0,0 +1,46 @@ +from collections import deque +class Solution: + def rotate(self,grid,x,y,xn,yn,k): + dq=deque([]) + cur_x=x + cur_y=y + while cur_x=x: + dq.append((cur_y,cur_x)) + cur_x-=1 + cur_x+=1 + cur_y-=1 + while cur_y>y: + dq.append((cur_y,cur_x)) + cur_y-=1 + return dq + temp=yn*xn-(yn-2)*(xn-2) + k=k%temp + + if k=yn and k List[List[int]]: + return self.rotate(grid,0,0,len(grid[0]),len(grid),k) From 7e871bf6ed18174b26bd4f55e4e4006434fe8045 Mon Sep 17 00:00:00 2001 From: oheunhyuck <71165142+oheunhyuck@users.noreply.github.com> Date: Tue, 3 Nov 2026 23:17:15 +0900 Subject: [PATCH 3/3] Create 1861. Rotating the Box --- .../1861. Rotating the Box" | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 "leetcode3/\354\230\244\354\235\200\355\230\201/1861. Rotating the Box" diff --git "a/leetcode3/\354\230\244\354\235\200\355\230\201/1861. Rotating the Box" "b/leetcode3/\354\230\244\354\235\200\355\230\201/1861. Rotating the Box" new file mode 100644 index 000000000..bd99fc3ef --- /dev/null +++ "b/leetcode3/\354\230\244\354\235\200\355\230\201/1861. Rotating the Box" @@ -0,0 +1,11 @@ +class Solution: + def rotateTheBox(self, grid: list[list[str]]) -> list[list[str]]: + + + for y in range(len(grid)) + board=[[] for _ in range(len(grid[0]))] + for y in grid: + for i in range(len(y)): + board[i].append(y[i]) + +