Skip to content

Commit 2921a0e

Browse files
committed
Update 01.01.01-Data-Structures-Algorithms.md
1 parent 2b3455c commit 2921a0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/ch01/01.01/01.01.01-Data-Structures-Algorithms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
> **解决方法**
134134
>
135135
> 1. 用计算器从 $1$ 开始,不断向右依次加上 $2$,再加上 $3$,...,依次加到 $100$,得出结果为 $5050$。
136-
> 2. 根据高斯求和公式:**和 = (首项 + 末项) × 项数 / 2**,直接算出结果为:$ \frac{(1+100) * 100}{2} = 5050$。
136+
> 2. 根据高斯求和公式:**和 = (首项 + 末项) × 项数 / 2**,直接算出结果为:$\frac{(1 + 100) \times 100}{2} = 5050$。
137137
138138
- 示例 3:
139139

0 commit comments

Comments
 (0)