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 59821ab commit 4ffedcbCopy full SHA for 4ffedcb
copypasta/template/leetcode/helper.go
@@ -78,11 +78,13 @@ func renameInputArgs(funcDefineLine string) string {
78
"arr", "a",
79
"array", "a",
80
"stones", "a",
81
+ "prices", "a",
82
"mat", "a",
83
"matrix", "a",
84
"grid", "g",
85
"grid1", "g1",
86
"grid2", "g2",
87
+ "words", "a",
88
89
// 字符串
90
"word", "s",
@@ -92,10 +94,14 @@ func renameInputArgs(funcDefineLine string) string {
92
94
"s2", "y",
93
95
96
// 其余常见变量名
97
+ "num", "n",
98
"edges", "es",
99
"points", "ps",
100
+ "pairs", "ps",
101
"queries", "qs",
- "source", "src",
102
+ "startPos", "st",
103
+ "start", "st",
104
+ "source", "st",
105
"target", "tar",
106
"limit", "lim",
107
"index", "id",
0 commit comments