Skip to content

Commit

Permalink
remove unnecessary type conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
wodray committed Jul 6, 2024
1 parent f4a6d21 commit 4d51f6a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4d51f6a

Please sign in to comment.