mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 04:31:55 +08:00
Several bug fixes
This commit is contained in:
@ -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++
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user