ProghubPH

single option

```
func foo(a, N int) int {
i := N
for i > 0 { // while (i > 0)
a += i
i /= 2
}
return a
}
```

`O(N)`

`O(Sqrt(N))`

`O(N / 2)`

`O(log N)`

© 2021 Proghub - a breath of fresh air in preparation for the interview.

When using materials from proghub.io, a link to the site is required.