Skip to content

Commit ffb91b8

Browse files
committed
fix: update README.md
1 parent 7821990 commit ffb91b8

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

README_EN.md

+8
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,20 @@ Complete solutions to [LeetCode](https://leetcode-cn.com/problemset/all/), [LCOF
3535

3636
### Arrays
3737

38+
1. [Rotate Array](./solution/0100-0199/0189.Rotate%20Array/README_EN.md)
39+
3840
### Linked List
3941

42+
1. [Reverse Linked List](./solution/0200-0299/0206.Reverse%20Linked%20List/README_EN.md)
43+
1. [Linked List Cycle](./solution/0100-0199/0141.Linked%20List%20Cycle/README_EN.md)
44+
1. [Linked List Cycle II](./solution/0100-0199/0142.Linked%20List%20Cycle%20II/README_EN.md)
45+
4046
### Binary Tree
4147

4248
### Math
4349

50+
1. [Set Mismatch](./solution/0600-0699/0645.Set%20Mismatch/README_EN.md)
51+
4452
### Stack & Queue
4553

4654
### Dynamic Programming

solution/0100-0199/0189.Rotate Array/README.md

+3-9
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,11 @@
3838

3939
`k=3``nums=[1,2,3,4,5,6,7]`
4040

41-
先将 `nums` 整体翻转:
41+
先将 `nums` 整体翻转:`[1,2,3,4,5,6,7]` -> `[7,6,5,4,3,2,1]`
4242

43-
`[1,2,3,4,5,6,7]` -> `[7,6,5,4,3,2,1]`
43+
再翻转 `0~k-1` 范围内的元素:`[7,6,5,4,3,2,1]` -> `[5,6,7,4,3,2,1]`
4444

45-
再翻转 `0~k-1` 范围内的元素:
46-
47-
`[7,6,5,4,3,2,1]` -> `[5,6,7,4,3,2,1]`
48-
49-
最后翻转 `k~n-1` 范围内的元素,即可得到最终结果:
50-
51-
`[5,6,7,4,3,2,1]` -> `[5,6,7,1,2,3,4]`
45+
最后翻转 `k~n-1` 范围内的元素,即可得到最终结果:`[5,6,7,4,3,2,1]` -> `[5,6,7,1,2,3,4]`
5246

5347
<!-- tabs:start -->
5448

0 commit comments

Comments
 (0)