Powers of 2
Definition · Interview room
Keep reading with Tradecraft
Without a subscription, you can read three definitions every 30 days. Tradecraft explains all 976 terms and strategies, with the lessons that teach them, flashcards that come back before you forget, quizzes and a payoff lab.
210 = 1,024 ≈ a thousand; 216 = 65,536; 220 ≈ 1.05 million; 230 ≈ 1.07 billion. Key for binary-search and doubling puzzles.
Example
1,000 bottles need 10 binary testers since 210 ≥ 1,000.
Where Tradecraft teaches it
The Interview room, in the lesson “Brainteasers: counting and elimination”: Find the answer by counting outcomes, balancing the worst case or ruling options out, and know the classic answers.
Related terms
- 25 horsesFinding the fastest 3 of 25 with five-horse races and no timer takes 7 races: 5 heats, a race of heat winners, then one race for the 5 horses still…
- Bat and ballTogether $1.10, one costs $1 more than the other: the cheap one is 5 cents, not 10 — the classic test of checking your first instinct.
- Count the outcomesA limit for puzzles about tests: each test has a fixed number of possible results, so t tests give at most (results)t outcomes, and that must be at…
- Trailing zeros of 100!24. Each zero needs a factor 10 = 2 × 5, and fives are the scarce factor: 20 multiples of 5 up to 100, plus 4 extra fives from 25, 50, 75 and 100.
- Twelve-coin weighingOne of 12 coins is heavier or lighter; a balance finds which coin and which way in 3 weighings.
- Two-egg dropWorst-case minimum drops to find the breaking floor of a 100-story building with two identical eggs: 14 — drop at 14, 27, 39, … so each gap shrinks…