Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Jtsummers
on July 19, 2021
|
parent
|
context
|
favorite
| on:
I had to give a wrong answer to get the job (2017)
It's still O(n) or O(log(n)) as you have to compute the value using exponentiation to the nth power. Which offers either a linear algorithm or a faster logarithmic algorithm if you use fast exponentiation. It isn't actually O(1).
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: