Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eb63a2f

Browse files
committed
Update 01.Data-Structures-Algorithms.md
1 parent bcb1fa2 commit eb63a2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Contents/00.Introduction/01.Data-Structures-Algorithms.md

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

0 commit comments

Comments
 (0)