mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-24 10:33:34 +08:00
Polish the chapter
introduction, computational complexity.
This commit is contained in:
@@ -55,7 +55,7 @@ $$
|
||||
|
||||
### 代码实现
|
||||
|
||||
在代码中,我们无需通过循环来切分整数,而可以利用向下整除运算得到 $3$ 的个数 $a$ ,用取模运算得到余数 $b$ ,此时有:
|
||||
在代码中,我们无须通过循环来切分整数,而可以利用向下整除运算得到 $3$ 的个数 $a$ ,用取模运算得到余数 $b$ ,此时有:
|
||||
|
||||
$$
|
||||
n = 3 a + b
|
||||
|
||||
Reference in New Issue
Block a user