mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 21:24:53 +08:00
fix: Polishing code format on linearLogRecur, convert String type to string (#841)
This commit is contained in:
@ -109,8 +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