Interview Brain Teasers

Brain teasers you might encounter in a finance, consulting, or engineering interview

Amazon Hanging Cable Interview Question

An 80 meter cable hangs between the tops of two poles which are each 50 meters tall. The lowest point of the cable is 10 meters above the ground.

How far apart are the two poles?


This Amazon hanging cable interview question was reportedly asked in an actual Amazon interview.

Preparing for a brain teaser interview? Check out our ultimate guide to brain teaser interviews or try another big tech interview question, the Google 25 horses puzzle.

Continue reading “Amazon Hanging Cable Interview Question”

Prisoner Hat Riddle

10 prisoners are lined up single file, facing forward. Each prisoner has either a red or blue hat randomly placed on their head. No one can see their own hat or any hats behind them, but prisoners can see all hats in front of them.

Starting from the back of the line, each prisoner can guess the color of their hat out loud (“red” or “blue”). Prisoners guess correctly are freed. Everyone can hear every guess.

The prisoners can strategize beforehand, but are not allowed to communicate once it’s started. What strategy would save the most prisoners, and how many are saved on average?

Continue reading “Prisoner Hat Riddle”

Google 25 Horses Puzzle

Find the 3 fastest horses out of 25 race horses. You have only one track, which can race 5 horses at a time, and since you have no watch, you only know the order the horses finished in.

What is the fewest number of races you need to find the 3 fastest horses?

Assume each horse always runs its fastest, and no two horses are equally fast.


This Google 25 horses puzzle is a classic tech interview question that they once actually asked in their interviews.

Preparing for a brain teaser interview? Check out our ultimate guide to brain teaser interviews.

Continue reading “Google 25 Horses Puzzle”

Double the Amount You Need to Do

At the beginning of January, you set a goal to work every day, to reach a total of 5000 minutes of work by the end of the month. But to give yourself a better shot of achieving this, you decide to front-load it—at the beginning of each day, you figure out how much you’d need to work on average on each remaining day to achieve your goal, and then you work double the amount you need to do. For example, if you had 50 minutes left and 5 days left, you would need to work 10 minutes/day, so you would choose to work 20 minutes on that 5th-to-last day.

If you chose to work this way, how long does it take you to complete your goal of 5000 minutes?

View Solution

Boy or Girl Paradox

The “boy or girl paradox” is a well-known brain teaser by famous puzzle-maker Martin Gardner. It’s popularly considered a “paradox” because (1) it has a highly unintuitive solution, and (2) its ambiguous wording meant either of two solutions could be valid solutions.

This is a rewording of that brain teaser to eliminate some ambiguity from that original question:

Out of all families with exactly two children, we randomly pick one family that has at least one boy. What is the probability that both children in this family are boys?

Assume only for the purposes of this puzzle that a child can only be a boy or a girl, and that either possibility is equally likely.

Read More

Two Envelopes Paradox

The two envelopes paradox is a famous brain teaser of sorts, and not a true paradox. The problem is generally posed like this:

You are given a choice between two identical envelopes. One envelope contains some amount of money, and the other contains twice that amount of money. There is no way to distinguish between the two. However, when you choose one of the envelopes, before opening it, you are given the option of switching to the other envelope. Should you switch?

Why is this sometimes called a paradox? Well, if you choose to switch, you have a 50% chance of doubling your money, and a 50% chance of halving your money. If the amount of money in the envelope you initially chose is M, this reasoning suggests the expected amount in the other envelope is (2M + 0.5M) / 2 = 1.25M. This is more than M, so you should always switch.

But that would suggest once you’ve switched, you’re in the same position you were before you switched, so you should switch again. What is the problem with this reasoning?

Read More

5 Quant Brain Teasers

Whether you’re preparing for an interview or just trying to keep your mind sharp, here are some quant brain teasers to test your skills.

Remember, if you get a brain teaser at an interview, you don’t necessarily need to get the correct final answer to do well, you just need to demonstrate your problem-solving skills, your ability to think and communicate, and your comfort with math, logic, and statistics. For more tips on tackling brain teaser interviews, check out our guide to brain teaser interview questions.


1. Friday the 13ths

Easy-medium difficulty

What is the minimum and maximum number of Friday the 13ths that can occur in a calendar year?

Read More and View Solutions