Skip to content

Commit 1c82569

Browse files
author
krystism
committed
Update README.md
1 parent 79224ca commit 1c82569

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

algorithms/PascalsTriangle/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,5 @@ vector<vector<int>> generate(int n) {
8282
8383
* 初始化第一项为1
8484
* 分数从左到右为`5/1, 4/2, 3/3, 2/4, 1/5`, 因此从左到右的数字为`1 * 5/1 == 5, 5 * 4/2 == 10, 10 * 3/3 = 10, 10 * 2/4 == 5, 5 * 1/5 == 1`, 最后结果为`1,5,10,10,5,1`
85+
86+
实现见[Pascal's Triangle II](../PascalsTriangleII)

0 commit comments

Comments
 (0)