Skip to content

Commit 69cb7c9

Browse files
committed
Runtime: 123 ms (Top 65.91%) | Memory: 46.7 MB (Top 68.76%)
1 parent bcae7bc commit 69cb7c9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/algorithms/Z/Zigzag Conversion/Zigzag Conversion.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 123 ms (Top 65.91%) | Memory: 46.7 MB (Top 68.76%)
12
var convert = function(s, numRows) {
23
let result = [];
34
let row = 0;
@@ -11,7 +12,7 @@ var convert = function(s, numRows) {
1112
row++;
1213
if (row === numRows - 1) goingUp = true; // reverse direction after reaching bottom
1314
}
14-
15+
1516
}
1617
return result.join('');
17-
};
18+
};

0 commit comments

Comments
 (0)