Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's O(log n) because Haskell is smart enough to implement exponentiation by repeated squaring and summing as appropriate? (There must be a better name for that.)



I believe that's called Russian Peasant Exponentiation.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: