We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
leetcode stat -g
1 parent 8dc0b2a commit fe9a9a9Copy full SHA for fe9a9a9
lib/commands/stat.js
@@ -104,7 +104,8 @@ function showGraph(problems) {
104
for (let problem of problems)
105
graph[problem.fid] = ICONS[problem.state] || ICONS.none;
106
107
- let line = [sprintf(' %03s', 0)];
+ let rowNumFormat = ' %04s';
108
+ let line = [sprintf(rowNumFormat, 0)];
109
for (let i = 1, n = graph.length; i <= n; ++i) {
110
// padding before group
111
if (i % 10 === 1) line.push(' ');
@@ -114,7 +115,7 @@ function showGraph(problems) {
114
115
// time to start new row
116
if (i % (10 * groups) === 0 || i === n) {
117
log.info(line.join(' '));
- line = [sprintf(' %03s', i)];
118
+ line = [sprintf(rowNumFormat, i)];
119
}
120
121
0 commit comments