We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9898007 commit ba3cf0aCopy full SHA for ba3cf0a
matrix/diagonal_traversal.py
@@ -1,7 +1,7 @@
1
-from typing import List
+from typing import list
2
3
4
-def find_diagonal_order(mat: List[List[int]]) -> List[int]:
+def find_diagonal_order(mat: list[list[int]]) -> list[int]:
5
"""
6
Returns the elements of the matrix in diagonal order.
7
0 commit comments