We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38dfefd commit 3219fb1Copy full SHA for 3219fb1
scripts/algorithms/S/Spiral Matrix IV/Spiral Matrix IV.js
@@ -1,3 +1,4 @@
1
+// Runtime: 1122 ms (Top 6.48%) | Memory: 103.4 MB (Top 52.52%)
2
3
var spiralMatrix = function(m, n, head) {
4
var matrix = new Array(m).fill().map(()=> new Array(n).fill(-1))
@@ -49,4 +50,4 @@
49
50
head = head.next;
51
}
52
return matrix;
-};
53
+};
0 commit comments