We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb66397 commit 4587b0dCopy full SHA for 4587b0d
scripts/algorithms/S/Spiral Matrix IV/Spiral Matrix IV.py
@@ -1,3 +1,4 @@
1
+// Runtime: 2522 ms (Top 39.98%) | Memory: 66.3 MB (Top 18.63%)
2
class Solution:
3
def spiralMatrix(self, m: int, n: int, head: Optional[ListNode]) -> List[List[int]]:
4
num = m * n
@@ -11,4 +12,4 @@ def spiralMatrix(self, m: int, n: int, head: Optional[ListNode]) -> List[List[in
11
12
x = x + dx
13
y = y + dy
14
head = head.next
- return res
15
+ return res
0 commit comments