mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-24 03:56:28 +08:00
remove unnecessary type conversions (#1411)
This commit is contained in:
parent
ff6d42bd9b
commit
2758e06374
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ fn linear_log_recur(n: i32) -> i32 {
|
|||
return 1;
|
||||
}
|
||||
let mut count = linear_log_recur(n / 2) + linear_log_recur(n / 2);
|
||||
for _ in 0..n as i32 {
|
||||
for _ in 0..n {
|
||||
count += 1;
|
||||
}
|
||||
return count;
|
||||
|
|
Loading…
Reference in a new issue