Iurii RoguliaIurii Rogulia
AboutAI EngineeringServicesProjectsAI SkillsStackTestimonialsPhrasesBlog
Contact
Iurii ships.

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

Think of a number
Hourly ratesChecklistsPrivacy PolicyCookie Policy

Business

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

?

Think of a number

1—1000

I’ll guess it in 10 steps or fewer.
Any number. No tricks.

How does it always work?

The computer isn’t guessing randomly. Each question eliminates exactly half of the remaining candidates. Starting from 1,024 possibilities, ten halvings always converge to a single answer.

This is binary search — one of the oldest and most useful algorithms in computer science. The same logic powers database index lookups, sorted list traversal, and git bisect for tracking down regression commits.

210 = 1,024, which covers any number from 1 to 1,000 in ten steps. The upper bound is 1,000, not 1,024 – a round power of two would be a giveaway to anyone who writes code.

Read the full explanation →