Skip to content

Commit 61ac2af

Browse files
author
Shuo
authored
Merge pull request #510 from openset/develop
Add: TranslatedName
2 parents f845754 + 28ca7e4 commit 61ac2af

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

internal/leetcode/topic_tag.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func tagsUnique(tags []tagType) []tagType {
5353
} else {
5454
if tag.Name != "" {
5555
rs[i-1].Name = tag.Name
56+
rs[i-1].TranslatedName = tag.Name
5657
}
5758
if tag.TranslatedName != "" {
5859
rs[i-1].TranslatedName = tag.TranslatedName

tag/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
| 17 | [Heap](https://github.com/openset/leetcode/tree/master/tag/heap/README.md) | [](https://github.com/openset/leetcode/tree/master/tag/heap/README.md) | | 18 | [Sort](https://github.com/openset/leetcode/tree/master/tag/sort/README.md) | [排序](https://github.com/openset/leetcode/tree/master/tag/sort/README.md) |
2121
| 19 | [Graph](https://github.com/openset/leetcode/tree/master/tag/graph/README.md) | [](https://github.com/openset/leetcode/tree/master/tag/graph/README.md) | | 20 | [Union Find](https://github.com/openset/leetcode/tree/master/tag/union-find/README.md) | [并查集](https://github.com/openset/leetcode/tree/master/tag/union-find/README.md) |
2222
| 21 | [Divide and Conquer](https://github.com/openset/leetcode/tree/master/tag/divide-and-conquer/README.md) | [分治算法](https://github.com/openset/leetcode/tree/master/tag/divide-and-conquer/README.md) | | 22 | [Trie](https://github.com/openset/leetcode/tree/master/tag/trie/README.md) | [字典树](https://github.com/openset/leetcode/tree/master/tag/trie/README.md) |
23-
| 23 | [Recursion](https://github.com/openset/leetcode/tree/master/tag/recursion/README.md) | [递归](https://github.com/openset/leetcode/tree/master/tag/recursion/README.md) | | 24 | [Sliding Window](https://github.com/openset/leetcode/tree/master/tag/sliding-window/README.md) | [](https://github.com/openset/leetcode/tree/master/tag/sliding-window/README.md) |
24-
| 25 | [Ordered Map](https://github.com/openset/leetcode/tree/master/tag/ordered-map/README.md) | [](https://github.com/openset/leetcode/tree/master/tag/ordered-map/README.md) | | 26 | [Segment Tree](https://github.com/openset/leetcode/tree/master/tag/segment-tree/README.md) | [线段树](https://github.com/openset/leetcode/tree/master/tag/segment-tree/README.md) |
23+
| 23 | [Recursion](https://github.com/openset/leetcode/tree/master/tag/recursion/README.md) | [递归](https://github.com/openset/leetcode/tree/master/tag/recursion/README.md) | | 24 | [Sliding Window](https://github.com/openset/leetcode/tree/master/tag/sliding-window/README.md) | [Sliding Window](https://github.com/openset/leetcode/tree/master/tag/sliding-window/README.md) |
24+
| 25 | [Ordered Map](https://github.com/openset/leetcode/tree/master/tag/ordered-map/README.md) | [Ordered Map](https://github.com/openset/leetcode/tree/master/tag/ordered-map/README.md) | | 26 | [Segment Tree](https://github.com/openset/leetcode/tree/master/tag/segment-tree/README.md) | [线段树](https://github.com/openset/leetcode/tree/master/tag/segment-tree/README.md) |
2525
| 27 | [Queue](https://github.com/openset/leetcode/tree/master/tag/queue/README.md) | [队列](https://github.com/openset/leetcode/tree/master/tag/queue/README.md) | | 28 | [Minimax](https://github.com/openset/leetcode/tree/master/tag/minimax/README.md) | [极小化极大](https://github.com/openset/leetcode/tree/master/tag/minimax/README.md) |
26-
| 29 | [Binary Indexed Tree](https://github.com/openset/leetcode/tree/master/tag/binary-indexed-tree/README.md) | [树状数组](https://github.com/openset/leetcode/tree/master/tag/binary-indexed-tree/README.md) | | 30 | [Random](https://github.com/openset/leetcode/tree/master/tag/random/README.md) | [](https://github.com/openset/leetcode/tree/master/tag/random/README.md) |
26+
| 29 | [Binary Indexed Tree](https://github.com/openset/leetcode/tree/master/tag/binary-indexed-tree/README.md) | [树状数组](https://github.com/openset/leetcode/tree/master/tag/binary-indexed-tree/README.md) | | 30 | [Random](https://github.com/openset/leetcode/tree/master/tag/random/README.md) | [Random](https://github.com/openset/leetcode/tree/master/tag/random/README.md) |
2727
| 31 | [Topological Sort](https://github.com/openset/leetcode/tree/master/tag/topological-sort/README.md) | [拓扑排序](https://github.com/openset/leetcode/tree/master/tag/topological-sort/README.md) | | 32 | [Brainteaser](https://github.com/openset/leetcode/tree/master/tag/brainteaser/README.md) | [脑筋急转弯](https://github.com/openset/leetcode/tree/master/tag/brainteaser/README.md) |
28-
| 33 | [Geometry](https://github.com/openset/leetcode/tree/master/tag/geometry/README.md) | [几何](https://github.com/openset/leetcode/tree/master/tag/geometry/README.md) | | 34 | [Line Sweep](https://github.com/openset/leetcode/tree/master/tag/line-sweep/README.md) | [](https://github.com/openset/leetcode/tree/master/tag/line-sweep/README.md) |
29-
| 35 | [Rejection Sampling](https://github.com/openset/leetcode/tree/master/tag/rejection-sampling/README.md) | [](https://github.com/openset/leetcode/tree/master/tag/rejection-sampling/README.md) | | 36 | [Reservoir Sampling](https://github.com/openset/leetcode/tree/master/tag/reservoir-sampling/README.md) | [蓄水池抽样](https://github.com/openset/leetcode/tree/master/tag/reservoir-sampling/README.md) |
30-
| 37 | [Memoization](https://github.com/openset/leetcode/tree/master/tag/memoization/README.md) | [记忆化](https://github.com/openset/leetcode/tree/master/tag/memoization/README.md) |
28+
| 33 | [Geometry](https://github.com/openset/leetcode/tree/master/tag/geometry/README.md) | [几何](https://github.com/openset/leetcode/tree/master/tag/geometry/README.md) | | 34 | [Line Sweep](https://github.com/openset/leetcode/tree/master/tag/line-sweep/README.md) | [Line Sweep](https://github.com/openset/leetcode/tree/master/tag/line-sweep/README.md) |
29+
| 35 | [Rejection Sampling](https://github.com/openset/leetcode/tree/master/tag/rejection-sampling/README.md) | [Rejection Sampling](https://github.com/openset/leetcode/tree/master/tag/rejection-sampling/README.md) | | 36 | [Reservoir Sampling](https://github.com/openset/leetcode/tree/master/tag/reservoir-sampling/README.md) | [蓄水池抽样](https://github.com/openset/leetcode/tree/master/tag/reservoir-sampling/README.md) |
30+
| 37 | [Binary Search Tree](https://github.com/openset/leetcode/tree/master/tag/binary-search-tree/README.md) | [二叉搜索树](https://github.com/openset/leetcode/tree/master/tag/binary-search-tree/README.md) | | 38 | [Memoization](https://github.com/openset/leetcode/tree/master/tag/memoization/README.md) | [记忆化](https://github.com/openset/leetcode/tree/master/tag/memoization/README.md) |

tag/tags.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@
117117
{
118118
"Name": "Sliding Window",
119119
"Slug": "sliding-window",
120-
"TranslatedName": ""
120+
"TranslatedName": "Sliding Window"
121121
},
122122
{
123123
"Name": "Ordered Map",
124124
"Slug": "ordered-map",
125-
"TranslatedName": ""
125+
"TranslatedName": "Ordered Map"
126126
},
127127
{
128128
"Name": "Segment Tree",
@@ -147,7 +147,7 @@
147147
{
148148
"Name": "Random",
149149
"Slug": "random",
150-
"TranslatedName": ""
150+
"TranslatedName": "Random"
151151
},
152152
{
153153
"Name": "Topological Sort",
@@ -167,18 +167,23 @@
167167
{
168168
"Name": "Line Sweep",
169169
"Slug": "line-sweep",
170-
"TranslatedName": ""
170+
"TranslatedName": "Line Sweep"
171171
},
172172
{
173173
"Name": "Rejection Sampling",
174174
"Slug": "rejection-sampling",
175-
"TranslatedName": ""
175+
"TranslatedName": "Rejection Sampling"
176176
},
177177
{
178178
"Name": "Reservoir Sampling",
179179
"Slug": "reservoir-sampling",
180180
"TranslatedName": "蓄水池抽样"
181181
},
182+
{
183+
"Name": "Binary Search Tree",
184+
"Slug": "binary-search-tree",
185+
"TranslatedName": "二叉搜索树"
186+
},
182187
{
183188
"Name": "Memoization",
184189
"Slug": "memoization",

0 commit comments

Comments
 (0)