Skip to content

Commit 4587b0d

Browse files
committed
Runtime: 2522 ms (Top 39.98%) | Memory: 66.3 MB (Top 18.63%)
1 parent fb66397 commit 4587b0d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/algorithms/S/Spiral Matrix IV/Spiral Matrix IV.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 2522 ms (Top 39.98%) | Memory: 66.3 MB (Top 18.63%)
12
class Solution:
23
def spiralMatrix(self, m: int, n: int, head: Optional[ListNode]) -> List[List[int]]:
34
num = m * n
@@ -11,4 +12,4 @@ def spiralMatrix(self, m: int, n: int, head: Optional[ListNode]) -> List[List[in
1112
x = x + dx
1213
y = y + dy
1314
head = head.next
14-
return res
15+
return res

0 commit comments

Comments
 (0)