mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-24 02:03:10 +08:00
build
This commit is contained in:
@ -461,7 +461,7 @@ For example, in the following code, the condition variable $i$ is updated twice
|
||||
int WhileLoopII(int n) {
|
||||
int res = 0;
|
||||
int i = 1; // 初始化条件变量
|
||||
// 循环求和 1, 2, 4, 5...
|
||||
// 循环求和 1, 4, 10, ...
|
||||
while (i <= n) {
|
||||
res += i;
|
||||
// 更新条件变量
|
||||
|
@ -108,8 +108,7 @@ hide:
|
||||
</div>
|
||||
|
||||
<div class="admonition quote">
|
||||
<p align="center">"Chase the wind and moon, never stopping"</p>
|
||||
<p align="center">"Beyond the plains, there are spring mountains"</p>
|
||||
<p align="center">"Knowledge increases by sharing."</p>
|
||||
</div>
|
||||
|
||||
---
|
||||
|
Reference in New Issue
Block a user