Skip to content

Commit

Permalink
Add Chinese Translation (trekhleb#815)
Browse files Browse the repository at this point in the history
Co-authored-by: Oleksii Trekhleb <trehleb@gmail.com>
  • Loading branch information
childrentime and trekhleb committed Jan 22, 2022
1 parent 53781db commit dd3cbe1
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/algorithms/linked-list/reverse-traversal/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Reversed Linked List Traversal

_Read this in other languages:_
[中文](README.zh-CN.md)

The task is to traverse the given linked list in reversed order.

For example for the following linked list:
Expand Down
19 changes: 19 additions & 0 deletions src/algorithms/linked-list/reverse-traversal/README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# 链表倒序遍历

我们的任务是倒序遍历给定的链表

比如下面的链表

![](https://upload.wikimedia.org/wikipedia/commons/6/6d/Singly-linked-list.svg)

遍历的顺序应该是

```text
37 → 99 → 12
```

因为我们每个节点只访问一次,时间复杂度应该是`O(n)`

## 参考

- [Wikipedia](https://zh.wikipedia.org/wiki/%E9%93%BE%E8%A1%A8)
1 change: 1 addition & 0 deletions src/algorithms/linked-list/traversal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

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

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

Expand Down
19 changes: 19 additions & 0 deletions src/algorithms/linked-list/traversal/README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# 链表遍历

我们的任务是顺序遍历给定的链表

比如下面的链表

![Singly linked list](https://upload.wikimedia.org/wikipedia/commons/6/6d/Singly-linked-list.svg)

遍历的顺序应该是

```text
12 → 99 → 37
```

因为我们每个节点只访问一次,时间复杂度应该是`O(n)`

## 参考

- [Wikipedia](https://zh.wikipedia.org/wiki/%E9%93%BE%E8%A1%A8)

0 comments on commit dd3cbe1

Please sign in to comment.