Difficulty – Medium

Medium difficulty brain teasers and puzzles

Confusing Zip Codes

The U.S. uses 5-digit zip codes to help determine where mail goes. Since mail can be oriented in all sorts of directions, they avoid assigning zip codes that could be confused with a different zip code when read upside-down. For example, 61666 could be confused with 99919 when upside-down, so mail could be accidentally routed to the wrong zip code if both were actual zip codes.

How many zip codes could be confused with a different zip code when read upside-down?

In the example above, 61666 and 99919 would count as two confusing zip codes. Also, zip codes are allowed to start with 0, such as 00501.

Continue reading “Confusing Zip Codes”

Tale of Two Trains

There are two trains that run between two cities. The trains are identical and run on identical routes, so passengers have no preference between the two and would take whichever train that pulls into the station. The trains run at the same frequency: exactly once an hour.

You often travel between the two cities on a whim, and when you do so, you show up at the station at a completely random time. Yet after many trips over the years, you notice that you have taken one of the trains three times as often as the other. Is this just really bad/good luck, or is there another likely explanation?

Continue reading “Tale of Two Trains”

Moving Battleship Puzzle

You are trying to hit a moving battleship, but you have no way of monitoring its position. However, you have the following information:

  • You know where the battleship started.
  • You know when the battleship started moving.
  • You know the battleship is only moving along a straight line.
  • You know the battleship moves a constant speed per hour, and that speed is an integer. But you do not know what that speed is.

Every hour, you can fire precisely once at any point on that line. Is there a strategy you can use that will guarantee you will hit the battleship in a finite amount of time?


Fun fact, this was an actual brainteaser given to me in the second round interview for a hedge fund internship back in 2011.

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

Continue reading “Moving Battleship Puzzle”