Skip to content

Commit cb895a9

Browse files
committed
Globalization
1 parent 04b65d2 commit cb895a9

File tree

6 files changed

+82
-88
lines changed

6 files changed

+82
-88
lines changed

Diff for: .github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
author_name: asdf2014
4040
author_email: [email protected]
4141
message: "[Code Formatter & Update Leaderboard] by 🤖"
42-
path: "Codes README.md README-en.md .idea/dictionaries/yuzhouwan.xml"
42+
path: "Codes README.md README-zh.md .idea/dictionaries/yuzhouwan.xml"
4343
pattern: "*.*"
4444
force: true
4545
env:

Diff for: .github/workflows/picker.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
author_name: asdf2014
3131
author_email: [email protected]
3232
message: "[Choose a Question Randomly] by 🤖"
33-
path: "Picker README.md README-en.md"
33+
path: "Picker README.md README-zh.md"
3434
pattern: "*.*"
3535
force: true
3636
env:

Diff for: Picker/random_picker.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,14 @@ def flush_readme(readme_file, url, date_comment, local):
6363

6464
# flush README
6565
flush_readme(
66-
"README.md", "https://leetcode-cn.com/problems/", "🤖:最近一次更新时间为 `%s`。\n", True
67-
)
68-
flush_readme(
69-
"README-en.md",
66+
"README.md",
7067
"https://leetcode.com/problems/",
7168
"🤖: The last update time was `%s`.\n",
7269
False,
7370
)
71+
flush_readme(
72+
"README-zh.md",
73+
"https://leetcode-cn.com/problems/",
74+
"🤖:最近一次更新时间为 `%s`。\n",
75+
True
76+
)

Diff for: README-en.md renamed to README-zh.md

+35-38
Original file line numberDiff line numberDiff line change
@@ -11,49 +11,48 @@
1111
[![](https://img.shields.io/badge/QQ%20Group-5366753-blue.svg?style=social&logo=tencent-qq)](https://shang.qq.com/wpa/qunwpa?idkey=bfbcf1453371a0810fd6be235ace47147f6fb9d262fb768b497c861f50af0af4)
1212
[![](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/asdf2014/algorithm)
1313

14-
[中文](https://github.com/asdf2014/algorithm/blob/master/README.md) | English
14+
[English](https://github.com/asdf2014/algorithm/blob/master/README.md) | 中文
1515

16-
# Team up to solve problems on LeetCode together
16+
# Leetcode 组队刷题
1717

18-
## Introduction
18+
## 介绍
1919

20-
### Code repository
20+
### 代码仓库
2121

22-
 The address of code repository is **[asdf2014 / algorithm](https://github.com/asdf2014/algorithm)**
22+
 代码仓库的坐标:**[asdf2014 / algorithm](https://github.com/asdf2014/algorithm)**
2323

24-
### Way to sign up
24+
### 报名途径
2525

26-
 Just leave a message in the comment area at the end of the "[Algorithm](https://yuzhouwan.github.io/posts/666/)" or in the [issues#40](https://github.com/asdf2014/gitment/issues/40), and you can participate at any time.
26+
 只需要在《[Algorithm](https://yuzhouwan.com/posts/666/)》文末的评论区,或者在 [issues#40](https://github.com/asdf2014/gitment/issues/40) 中留言,即可随时参与
2727

28-
### Way to participate
28+
### 参与方式
2929

30-
 Each participating partner will get the [Collaborator](https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/permission-levels-for-a-user-account-repository) permission of the code repository, and can freely submit the code (unlimited language). In the `/Codes/${Your Github Account Name}`directory, each will have own code base. After leaving the Github name, you will receive an invitation immediately, you can claim it in this [link](https://github.com/asdf2014/algorithm/invitations).
30+
 每位参与的小伙伴,都会获得代码仓库的 [Collaborator](https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/permission-levels-for-a-user-account-repository) 权限,可以自由地提交代码(不限制语种)。在 `/Codes/${你的 Github 账号名}` 目录下,每人都将拥有一个自己的代码库。留下 Github 名称后,将很快会收到邀请函,大家可以在 [asdf2014 - algorithm - invitations](https://github.com/asdf2014/algorithm/invitations) 链接中认领(当然,也欢迎直接通过提交 Pull Request 参与进来)
3131

3232
```bash
33-
# You can use the follow script to complete your first code submission for a quick start.
34-
# Of course, if you are familiar with Git commands, you can also submit the code yourself.
33+
# 一键完成您的第一次代码提交
3534
bash -c "$(curl -L https://raw.githubusercontent.com/asdf2014/algorithm/master/first_commit.sh)"
3635
```
3736

38-
### Frequency
37+
### 刷题频率
3938

40-
 Considering that there may not be much leisure time for everyone, we tentatively set the frequency of completion as "once a week".
39+
 考虑到可能大家的闲暇时间并不多,我们暂定刷题频率为“一周一题”
4140

42-
### Problem selection strategy
41+
### 选题策略
4342

44-
 The [problem selection robot](https://github.com/asdf2014/algorithm/blob/master/Picker/random_picker.py) will automatically select a problem randomly at 12 noon every Friday. The current problem is as follow:
43+
 [选题机器人](https://github.com/asdf2014/algorithm/blob/master/Picker/random_picker.py)会在每周五晚八点,自动地随机选定一个题目,当前题目如下:
4544

4645
| ID | Title |
4746
| :-: | :--: |
48-
| [565](https://leetcode.com/problems/array-nesting) | Array Nesting |
47+
| [565](https://leetcode-cn.com/problems/array-nesting) | Array Nesting |
4948

50-
🤖: The last update time was `2021-06-11 12:03:19`.
49+
🤖:最近一次更新时间为 `2021-06-11 20:03:19`
5150

5251
<br/>
5352

54-
## TopN
53+
## 排行榜
5554

56-
### The most problem-solving partners
55+
### 完成题目最多的小伙伴
5756

5857
| User | Completed |
5958
| :--: | :-------: |
@@ -68,35 +67,33 @@ bash -c "$(curl -L https://raw.githubusercontent.com/asdf2014/algorithm/master/f
6867
| [Buddy119](https://github.com/asdf2014/algorithm/tree/master/Codes/Buddy119) | 32 |
6968
| [asdf2014](https://github.com/asdf2014/algorithm/tree/master/Codes/asdf2014) | 31 |
7069

71-
### The most active partners
70+
### 最活跃的小伙伴
7271

7372
| User | Latest Active Date |
7473
| :--: | :----------------: |
75-
| **[madeai](https://github.com/asdf2014/algorithm/tree/master/Codes/madeai)** | 2021-06-13 08:09:06 |
76-
| **[yore](https://github.com/asdf2014/algorithm/tree/master/Codes/yore)** | 2021-05-19 01:40:25 |
77-
| **[ghoslation](https://github.com/asdf2014/algorithm/tree/master/Codes/ghoslation)** | 2021-04-18 13:22:42 |
78-
| [StarDrewer](https://github.com/asdf2014/algorithm/tree/master/Codes/StarDrewer) | 2021-03-18 10:43:42 |
79-
| [liyongquan](https://github.com/asdf2014/algorithm/tree/master/Codes/liyongquan) | 2021-03-04 10:39:23 |
80-
| [gracekoo](https://github.com/asdf2014/algorithm/tree/master/Codes/gracekoo) | 2021-02-28 16:48:31 |
81-
| [purebaba](https://github.com/asdf2014/algorithm/tree/master/Codes/purebaba) | 2021-02-26 01:15:47 |
82-
| [asdf2014](https://github.com/asdf2014/algorithm/tree/master/Codes/asdf2014) | 2021-02-18 14:37:56 |
83-
| [LittleCuteRabbit](https://github.com/asdf2014/algorithm/tree/master/Codes/LittleCuteRabbit) | 2021-01-12 05:32:48 |
84-
| [Terence.Sun](https://github.com/asdf2014/algorithm/tree/master/Codes/Terence.Sun) | 2020-12-30 09:48:56 |
85-
86-
🤖: Updates to the leaderboards are automatically executed after submission.
74+
| **[madeai](https://github.com/asdf2014/algorithm/tree/master/Codes/madeai)** | 2021-06-13 16:09:06 |
75+
| **[yore](https://github.com/asdf2014/algorithm/tree/master/Codes/yore)** | 2021-05-19 09:40:25 |
76+
| **[ghoslation](https://github.com/asdf2014/algorithm/tree/master/Codes/ghoslation)** | 2021-04-18 21:22:42 |
77+
| [StarDrewer](https://github.com/asdf2014/algorithm/tree/master/Codes/StarDrewer) | 2021-03-18 18:43:42 |
78+
| [liyongquan](https://github.com/asdf2014/algorithm/tree/master/Codes/liyongquan) | 2021-03-04 18:39:23 |
79+
| [gracekoo](https://github.com/asdf2014/algorithm/tree/master/Codes/gracekoo) | 2021-03-01 00:48:31 |
80+
| [purebaba](https://github.com/asdf2014/algorithm/tree/master/Codes/purebaba) | 2021-02-26 09:15:47 |
81+
| [asdf2014](https://github.com/asdf2014/algorithm/tree/master/Codes/asdf2014) | 2021-02-18 22:37:56 |
82+
| [LittleCuteRabbit](https://github.com/asdf2014/algorithm/tree/master/Codes/LittleCuteRabbit) | 2021-01-12 13:32:48 |
83+
| [Terence.Sun](https://github.com/asdf2014/algorithm/tree/master/Codes/Terence.Sun) | 2020-12-30 17:48:56 |
84+
85+
🤖:排行榜的更新会在提交后自动执行。
8786

8887
<br/>
8988

90-
## Original intention
89+
## 初衷
9190

92-
 It is purely a public welfare project, and we call on everyone to study together, communicate with each other and make progress together.
91+
 纯属公益项目,号召大家一起刷题,互相交流,共同进步。
9392

94-
## Thanks
93+
## 鸣谢
9594

9695
[![](https://opencollective.com/algorithm/contributors.svg?width=666)](https://github.com/asdf2014/algorithm/graphs/contributors)
9796

9897
---
9998

100-
For more details, please refer to "[Algorithm](https://yuzhouwan.com/posts/666/)". In addition, if you encounter problems related to Git, please refer to "[Git](https://yuzhouwan.com/posts/30041/)".
101-
102-
99+
更多内容,详见《[Algorithm](https://yuzhouwan.com/posts/666/)》。另外,如果遇到 Git 操作相关的问题,详见《[Git 高级玩法](https://yuzhouwan.com/posts/30041/)》。

Diff for: README.md

+36-42
Original file line numberDiff line numberDiff line change
@@ -11,53 +11,49 @@
1111
[![](https://img.shields.io/badge/QQ%20Group-5366753-blue.svg?style=social&logo=tencent-qq)](https://shang.qq.com/wpa/qunwpa?idkey=bfbcf1453371a0810fd6be235ace47147f6fb9d262fb768b497c861f50af0af4)
1212
[![](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/asdf2014/algorithm)
1313

14+
English | [中文](https://github.com/asdf2014/algorithm/blob/master/README-zh.md)
1415

15-
中文 | [English](https://github.com/asdf2014/algorithm/blob/master/README-en.md)
16+
# Team up to solve problems on LeetCode together
1617

17-
# Leetcode 组队刷题
18+
## Introduction
1819

19-
## 介绍
20+
### Code repository
2021

21-
### 代码仓库
22+
 The address of code repository is **[asdf2014 / algorithm](https://github.com/asdf2014/algorithm)**
2223

23-
 代码仓库的坐标:**[asdf2014 / algorithm](https://github.com/asdf2014/algorithm)**
24+
### Way to sign up
2425

26+
 Just leave a message in the comment area at the end of the "[Algorithm](https://yuzhouwan.github.io/posts/666/)" or in the [issues#40](https://github.com/asdf2014/gitment/issues/40), and you can participate at any time.
2527

26-
### 报名途径
28+
### Way to participate
2729

28-
 只需要在《[Algorithm](https://yuzhouwan.com/posts/666/)》文末的评论区,或者在 [issues#40](https://github.com/asdf2014/gitment/issues/40) 中留言,即可随时参与
29-
30-
31-
### 参与方式
32-
33-
 每位参与的小伙伴,都会获得代码仓库的 [Collaborator](https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/permission-levels-for-a-user-account-repository) 权限,可以自由地提交代码(不限制语种)。在 `/Codes/${你的 Github 账号名}` 目录下,每人都将拥有一个自己的代码库。留下 Github 名称后,将很快会收到邀请函,大家可以在 [asdf2014 - algorithm - invitations](https://github.com/asdf2014/algorithm/invitations) 链接中认领(当然,也欢迎直接通过提交 Pull Request 参与进来)
30+
 Each participating partner will get the [Collaborator](https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/permission-levels-for-a-user-account-repository) permission of the code repository, and can freely submit the code (unlimited language). In the `/Codes/${Your Github Account Name}`directory, each will have own code base. After leaving the Github name, you will receive an invitation immediately, you can claim it in this [link](https://github.com/asdf2014/algorithm/invitations).
3431

3532
```bash
36-
# 一键完成您的第一次代码提交
33+
# You can use the follow script to complete your first code submission for a quick start.
34+
# Of course, if you are familiar with Git commands, you can also submit the code yourself.
3735
bash -c "$(curl -L https://raw.githubusercontent.com/asdf2014/algorithm/master/first_commit.sh)"
3836
```
3937

38+
### Frequency
4039

41-
### 刷题频率
42-
43-
 考虑到可能大家的闲暇时间并不多,我们暂定刷题频率为“一周一题”
40+
 Considering that there may not be much leisure time for everyone, we tentatively set the frequency of completion as "once a week".
4441

42+
### Problem selection strategy
4543

46-
### 选题策略
47-
48-
 [选题机器人](https://github.com/asdf2014/algorithm/blob/master/Picker/random_picker.py)会在每周五晚八点,自动地随机选定一个题目,当前题目如下:
44+
 The [problem selection robot](https://github.com/asdf2014/algorithm/blob/master/Picker/random_picker.py) will automatically select a problem randomly at 12 noon every Friday. The current problem is as follow:
4945

5046
| ID | Title |
5147
| :-: | :--: |
52-
| [565](https://leetcode-cn.com/problems/array-nesting) | Array Nesting |
48+
| [565](https://leetcode.com/problems/array-nesting) | Array Nesting |
5349

54-
🤖:最近一次更新时间为 `2021-06-11 20:03:19`
50+
🤖: The last update time was `2021-06-11 12:03:19`.
5551

5652
<br/>
5753

58-
## 排行榜
54+
## TopN
5955

60-
### 完成题目最多的小伙伴
56+
### The most problem-solving partners
6157

6258
| User | Completed |
6359
| :--: | :-------: |
@@ -72,35 +68,33 @@ bash -c "$(curl -L https://raw.githubusercontent.com/asdf2014/algorithm/master/f
7268
| [Buddy119](https://github.com/asdf2014/algorithm/tree/master/Codes/Buddy119) | 32 |
7369
| [asdf2014](https://github.com/asdf2014/algorithm/tree/master/Codes/asdf2014) | 31 |
7470

75-
### 最活跃的小伙伴
71+
### The most active partners
7672

7773
| User | Latest Active Date |
7874
| :--: | :----------------: |
79-
| **[madeai](https://github.com/asdf2014/algorithm/tree/master/Codes/madeai)** | 2021-06-13 16:09:06 |
80-
| **[yore](https://github.com/asdf2014/algorithm/tree/master/Codes/yore)** | 2021-05-19 09:40:25 |
81-
| **[ghoslation](https://github.com/asdf2014/algorithm/tree/master/Codes/ghoslation)** | 2021-04-18 21:22:42 |
82-
| [StarDrewer](https://github.com/asdf2014/algorithm/tree/master/Codes/StarDrewer) | 2021-03-18 18:43:42 |
83-
| [liyongquan](https://github.com/asdf2014/algorithm/tree/master/Codes/liyongquan) | 2021-03-04 18:39:23 |
84-
| [gracekoo](https://github.com/asdf2014/algorithm/tree/master/Codes/gracekoo) | 2021-03-01 00:48:31 |
85-
| [purebaba](https://github.com/asdf2014/algorithm/tree/master/Codes/purebaba) | 2021-02-26 09:15:47 |
86-
| [asdf2014](https://github.com/asdf2014/algorithm/tree/master/Codes/asdf2014) | 2021-02-18 22:37:56 |
87-
| [LittleCuteRabbit](https://github.com/asdf2014/algorithm/tree/master/Codes/LittleCuteRabbit) | 2021-01-12 13:32:48 |
88-
| [Terence.Sun](https://github.com/asdf2014/algorithm/tree/master/Codes/Terence.Sun) | 2020-12-30 17:48:56 |
89-
90-
🤖:排行榜的更新会在提交后自动执行。
75+
| **[madeai](https://github.com/asdf2014/algorithm/tree/master/Codes/madeai)** | 2021-06-13 08:09:06 |
76+
| **[yore](https://github.com/asdf2014/algorithm/tree/master/Codes/yore)** | 2021-05-19 01:40:25 |
77+
| **[ghoslation](https://github.com/asdf2014/algorithm/tree/master/Codes/ghoslation)** | 2021-04-18 13:22:42 |
78+
| [StarDrewer](https://github.com/asdf2014/algorithm/tree/master/Codes/StarDrewer) | 2021-03-18 10:43:42 |
79+
| [liyongquan](https://github.com/asdf2014/algorithm/tree/master/Codes/liyongquan) | 2021-03-04 10:39:23 |
80+
| [gracekoo](https://github.com/asdf2014/algorithm/tree/master/Codes/gracekoo) | 2021-02-28 16:48:31 |
81+
| [purebaba](https://github.com/asdf2014/algorithm/tree/master/Codes/purebaba) | 2021-02-26 01:15:47 |
82+
| [asdf2014](https://github.com/asdf2014/algorithm/tree/master/Codes/asdf2014) | 2021-02-18 14:37:56 |
83+
| [LittleCuteRabbit](https://github.com/asdf2014/algorithm/tree/master/Codes/LittleCuteRabbit) | 2021-01-12 05:32:48 |
84+
| [Terence.Sun](https://github.com/asdf2014/algorithm/tree/master/Codes/Terence.Sun) | 2020-12-30 09:48:56 |
85+
86+
🤖: Updates to the leaderboards are automatically executed after submission.
9187

9288
<br/>
9389

94-
## 初衷
90+
## Original intention
9591

96-
 纯属公益项目,号召大家一起刷题,互相交流,共同进步。
92+
 It is purely a public welfare project, and we call on everyone to study together, communicate with each other and make progress together.
9793

98-
## 鸣谢
94+
## Thanks
9995

10096
[![](https://opencollective.com/algorithm/contributors.svg?width=666)](https://github.com/asdf2014/algorithm/graphs/contributors)
10197

102-
10398
---
10499

105-
106-
更多内容,详见《[Algorithm](https://yuzhouwan.com/posts/666/)》。另外,如果遇到 Git 操作相关的问题,详见《[Git 高级玩法](https://yuzhouwan.com/posts/30041/)》。
100+
For more details, please refer to "[Algorithm](https://yuzhouwan.com/posts/666/)". In addition, if you encounter problems related to Git, please refer to "[Git](https://yuzhouwan.com/posts/30041/)".

Diff for: top.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,5 +139,5 @@ def expand_dict():
139139
expand_dict()
140140

141141
# flush README
142-
flush_readme("README.md", True)
143-
flush_readme("README-en.md", False)
142+
flush_readme("README.md", False)
143+
flush_readme("README-zh.md", True)

0 commit comments

Comments
 (0)