All · Practice · Puzzles

Logic and Probability Puzzles 30

Thirty puzzles of the kind quant, trading and analytics interviews ask: logic, probability, expected value, estimation.

  • Free
  • Beginner to advanced
  • 4h
  • 30 problems

What you’ll learn

  • Break a logic puzzle into cases and check every one
  • Compute probabilities and expected values with conditioning, symmetry and linearity of expectation
  • Reason about games, streaks and optimal stopping the way quant interviews expect
  • Make a structured estimate and sanity-check it

About this course

Puzzles are grouped by kind and run from easy to hard within each group. Answers are checked as you submit them: numbers and fractions are accepted where they make sense (for example 3/8 or 0.375), and estimation puzzles ask for the right order of magnitude.

Every puzzle has hints that build up and a worked solution in clear steps. The probability answers were checked both exactly and by simulation.

Syllabus

6 units, about 4 hours.

1Logic and deduction10 lessons1h 30m
  • Four Litres From Two Jugs
  • The Light Ring Among Twenty-Five
  • Pilots and Smugglers on the Night Ferry
  • Sixty Lamps and Sixty Staff
  • Five Runners, Three Clues
  • Twelve Robots Count the Honest
  • Twenty Switches, Twenty Hidden Lamps
  • Four Cavers, One Lamp
  • The Odd Battery and a Spare
  • Six Trustees and a Vault
2Probability4 lessons31m
  • Which Coin Was It?
  • The Dealer Saw a Five
  • Four Lockers and a Helpful Host
  • Ana's HTH Against Ben's TTH
3Expected value and games7 lessons1h 6m
  • The Same-Colour Card Stall
  • Collecting All Five Stickers
  • Three Tries on a Ten-Sided Die
  • Same-Rank Neighbours in a Shuffled Deck
  • The Doubling Game With a Small Bank
  • Waiting for H T H H
  • Stop Anytime: Four Red, Five Black
4Estimation4 lessons23m
  • Coffees Sold in a City Each Day
  • Grains in a Kilogram of Rice
  • Smartphone Screen Repairs in a Year
  • Nappies Used in a Country Each Year
5Mental maths and number puzzles3 lessons15m
  • 68 Times 72 in Your Head
  • Last Two Digits of a Power of Seven
  • Sum Without Multiples of 3 or 5
6Puzzles that lead to algorithms2 lessons30m
  • Every Second Player Leaves
  • Three Test Panels, 120 Pressure Levels

Who it’s for

All, at Beginner to advanced level.

Time needed

Self-paced, with no start dates or deadlines. Working through everything takes about 4 hours in total; the syllabus shows the time for each unit.

More like this

Related courses

All Practice courses
Practice

All · Algorithms and data structures

Core Patterns 40

Forty original coding problems arranged by the patterns that coding interviews at large tech companies keep returning to: hashing, two pointers, sliding window, prefix sums, stacks, binary search, intervals, linked lists, trees, tries, heaps, graphs, backtracking, dynamic programming and bit tricks. Write your solution in Python or JavaScript in the browser; it runs against hidden tests, including large ones that a slow brute force will not pass.

  • Beginner to intermediate
  • 13h
  • 40 problems
  • Practice
Free
Practice

All · SQL

SQL 20

Twenty original SQL problems in the style data, analytics and engineering interviews use: NULLs, anti-joins, aggregation, top-N per group with ties, running totals, month-over-month change, deduplication, pivots and gaps-and-islands streaks. You write the query in the browser and it is checked against hidden data sets, so it has to be right for edge cases, not just the sample.

  • Beginner to advanced
  • 5h
  • 20 problems
  • Practice
Free