Skip to content

Commit f74af76

Browse files
committed
feat: update README.md
1 parent a573f54 commit f74af76

File tree

7 files changed

+16
-2
lines changed

7 files changed

+16
-2
lines changed

index.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,17 @@
5555
},
5656
function (hook, vm) {
5757
hook.beforeEach(function (html) {
58+
var englishVersion = vm.route.file.indexOf('README_EN') != -1
5859
if (/githubusercontent\.com/.test(vm.route.file)) {
5960
url = vm.route.file
6061
.replace('raw.githubusercontent.com', 'github.com')
6162
.replace(/\/master/, '/blob/master')
6263
} else {
6364
url = 'https://github.com/doocs/leetcode/blob/master/' + vm.route.file
6465
}
65-
var editHtml = '[:memo: Edit on GitHub](' + url + ')\n'
66-
return editHtml + html
66+
var editHtml = '[:memo: 在 GitHub 编辑](' + url + ')\n'
67+
var editHtmlEN = '[:memo: Edit on GitHub](' + url + ')\n'
68+
return (englishVersion ? editHtmlEN : editHtml) + html
6769
})
6870
},
6971
]

lcci/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
## 题解
77
以下所有题目均来源 [LeetCode 中国官网](https://leetcode-cn.com/problemset/lcci/),题解由 [doocs/leetcode 贡献者](https://github.com/doocs/leetcode/graphs/contributors) 提供,正在完善中,欢迎贡献你的题解!
88

9+
快速搜索题号、题解、标签等,请善用 <kbd>Control</kbd>+<kbd>F</kbd>(或者 <kbd>Command</kbd>+<kbd>F</kbd>)。
10+
911
| 题号 | 题解 | 标签 | 难度 |
1012
| --- | --- | --- | --- |
1113
| [01.01](https://leetcode-cn.com/problems/is-unique-lcci) | [判定字符是否唯一](/lcci/01.01.Is%20Unique/README.md) | `数组` | 简单 |

lcci/README_EN.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[中文文档](/lcci/README.md)
55

66
## Solutions
7+
Press <kbd>Control</kbd>+<kbd>F</kbd>(or <kbd>Command</kbd>+<kbd>F</kbd> on the Mac) to search anything you want.
78

89
| # | Solution | Tag | Difficulty |
910
| --- | --- | --- | --- |

lcof/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
## 题解
77
以下所有题目均来源 [LeetCode 中国官网](https://leetcode-cn.com/problemset/lcof/),题解由 [doocs/leetcode 贡献者](https://github.com/doocs/leetcode/graphs/contributors) 提供,正在完善中,欢迎贡献你的题解!
88

9+
快速搜索题号、题解、标签等,请善用 <kbd>Control</kbd>+<kbd>F</kbd>(或者 <kbd>Command</kbd>+<kbd>F</kbd>)。
10+
911
| 题号 | 题解 | 标签 | 难度 |
1012
| --- | --- | --- | --- |
1113
| [03](https://leetcode-cn.com/problems/shu-zu-zhong-zhong-fu-de-shu-zi-lcof) | [数组中重复的数字](/lcof/%E9%9D%A2%E8%AF%95%E9%A2%9803.%20%E6%95%B0%E7%BB%84%E4%B8%AD%E9%87%8D%E5%A4%8D%E7%9A%84%E6%95%B0%E5%AD%97/README.md) | `数组`,`哈希表` | 简单 |

lcof/README_EN.md

+2
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ Readers will improve their interview performance after reading this book. It wil
1010
## Solutions
1111
English Solutions is not available for the book. Please switch to Chinese version.
1212

13+
Press <kbd>Control</kbd>+<kbd>F</kbd>(or <kbd>Command</kbd>+<kbd>F</kbd> on the Mac) to search anything you want.
14+
1315
## Copyright
1416
[@Doocs](https://github.com/doocs)

solution/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
## 题解
66
以下所有题目均来源 [LeetCode 中国官网](https://leetcode-cn.com/problemset/all),题解由 [doocs/leetcode 贡献者](https://github.com/doocs/leetcode/graphs/contributors) 提供,正在完善中,欢迎贡献你的题解!
77

8+
快速搜索题号、题解、标签等,请善用 <kbd>Control</kbd>+<kbd>F</kbd>(或者 <kbd>Command</kbd>+<kbd>F</kbd>)。
9+
810
| 题号 | 题解 | 标签 | 难度 |
911
| --- | --- | --- | --- |
1012
| [1](https://leetcode-cn.com/problems/two-sum) | [两数之和](/solution/0000-0099/0001.Two%20Sum/README.md) | `数组`,`哈希表` | 简单 |

solution/README_EN.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# LeetCode
22

3+
34
[中文文档](/solution/README.md)
45

56
## Solutions
7+
Press <kbd>Control</kbd>+<kbd>F</kbd>(or <kbd>Command</kbd>+<kbd>F</kbd> on the Mac) to search anything you want.
8+
69

710
| # | Solution | Tags | Difficulty |
811
| --- | --- | --- | --- |

0 commit comments

Comments
 (0)