Comment

Comment by hobos_delight

I don't think you can do better than a binary search here, so log2(1000000) questions, which happens to come out to 20 with rounding.

I tried thinking a bit outside the box for other questions that would break down the search space - but none of them were any improvement on the binary search.

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton