Iurii RoguliaIurii Rogulia
AboutAI EngineeringServicesProjectsAI SkillsStackTestimonialsPhrasesBlog
Contact
Iurii ships.

Iurii Rogulia, senior full-stack software engineer. Professionally building software since 2001.

Think of a numberThink of a birthday
Hourly ratesChecklistsPrivacy PolicyCookie Policy

Business

TMI Iurii Rogulia
VAT ID: FI29845875
DUNS: 368664211
Lappeenranta, Finland 🇫🇮

?

Think of a birthday

Yours, a friend’s, anyone’s. I’ll find the day and month in 9 questions or fewer.
You only answer yes or no.

How does it always work?

Every question splits the remaining candidates in half. Twelve months need at most 4 questions, because 24 = 16 ≥ 12. A month has at most 31 days, which needs at most 5 questions, because 25 = 32 ≥ 31. Together that is 9.

This is binary search with yes-or-no answers instead of ‘higher’ and ‘lower’. The question is always ‘is it in the first half of what is left?’.

Read the full explanation →