HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by jacksontale | Hacker News Reader
Parent
Full thread
jacksontale
·
Yeah, you are right, I should have mentioned that.
View on HN
marvy
·
But there's an easy fix: don't pick numbers from the given sequence, instead use binary search on [0,n]. Then you're guaranteed only log n iterations.
jacksontale
·
Hi, I was using pure functional programming style, so list only.
Reply on news.ycombinator.com