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.
1 parent 2b2abaa commit 0eccd9cCopy full SHA for 0eccd9c
lib/commands/show.js
@@ -94,6 +94,8 @@ function genFileName(problem, opts) {
94
}
95
96
function showProblem(problem, argv) {
97
+ problem.discuss = problem.link.replace("leetcode-cn.com", "leetcode.com").replace("description", "discuss");
98
+
99
const taglist = [problem.category]
100
.concat(problem.companies || [])
101
.concat(problem.tags || [])
templates/detailed.tpl
@@ -2,6 +2,7 @@
2
<%= comment.line %> [<%= id %>] <%= name %>
3
<%= comment.line %>
4
<%= comment.line %> <%= link %>
5
+<%= comment.line %> <%= discuss %>
6
7
<%= comment.line %> <%= category %>
8
<%= comment.line %> <%= level %> (<%= percent %>%)
0 commit comments