Several bug fixes

This commit is contained in:
krahets
2023-10-09 18:21:18 +08:00
parent fb552987f5
commit c37b7c807b
4 changed files with 21 additions and 18 deletions

View File

@ -109,7 +109,7 @@ func linearLogRecur(n float64) int {
if n <= 1 {
return 1
}
count := linearLogRecur(n / 2) + linearLogRecur(n / 2)
count := linearLogRecur(n/2) + linearLogRecur(n/2)
for i := 0.0; i < n; i++ {
count++
}