Skip to content

Commit dd3cbe1

Browse files
childrentimetrekhleb
andauthoredJan 22, 2022
Add Chinese Translation (trekhleb#815)
Co-authored-by: Oleksii Trekhleb <[email protected]>
1 parent 53781db commit dd3cbe1

File tree

4 files changed

+42
-0
lines changed

4 files changed

+42
-0
lines changed
 

‎src/algorithms/linked-list/reverse-traversal/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Reversed Linked List Traversal
22

3+
_Read this in other languages:_
4+
[中文](README.zh-CN.md)
5+
36
The task is to traverse the given linked list in reversed order.
47

58
For example for the following linked list:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# 链表倒序遍历
2+
3+
我们的任务是倒序遍历给定的链表
4+
5+
比如下面的链表
6+
7+
![](https://upload.wikimedia.org/wikipedia/commons/6/6d/Singly-linked-list.svg)
8+
9+
遍历的顺序应该是
10+
11+
```text
12+
37 → 99 → 12
13+
```
14+
15+
因为我们每个节点只访问一次,时间复杂度应该是`O(n)`
16+
17+
## 参考
18+
19+
- [Wikipedia](https://zh.wikipedia.org/wiki/%E9%93%BE%E8%A1%A8)

‎src/algorithms/linked-list/traversal/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
_Read this in other languages:_
44
[_Русский_](README.ru-RU.md)
5+
[中文](README.zh-CN.md)
56

67
The task is to traverse the given linked list in straight order.
78

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# 链表遍历
2+
3+
我们的任务是顺序遍历给定的链表
4+
5+
比如下面的链表
6+
7+
![Singly linked list](https://upload.wikimedia.org/wikipedia/commons/6/6d/Singly-linked-list.svg)
8+
9+
遍历的顺序应该是
10+
11+
```text
12+
12 → 99 → 37
13+
```
14+
15+
因为我们每个节点只访问一次,时间复杂度应该是`O(n)`
16+
17+
## 参考
18+
19+
- [Wikipedia](https://zh.wikipedia.org/wiki/%E9%93%BE%E8%A1%A8)

0 commit comments

Comments
 (0)
Please sign in to comment.