mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-24 04:06:28 +08:00
Update time_complexity.rs
This commit is contained in:
parent
241644ca52
commit
5e93c3f024
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ fn exp_recur(n: i32) -> i32 {
|
|||
if n == 1 {
|
||||
return 1;
|
||||
}
|
||||
exp_recur(n - 1) + exp_recur(n - 1)
|
||||
exp_recur(n - 1) + exp_recur(n - 1) + 1
|
||||
}
|
||||
|
||||
/* 对数阶(循环实现) */
|
||||
|
|
Loading…
Reference in a new issue