Qm

Grid routes that pass a coffee shop

You walk a grid from home to work, going 55 blocks east and 33 blocks north (only east or north moves). A coffee shop sits at the corner that is 22 blocks east and 11 block north of home, and you want a shortest route that passes it.

How many shortest routes pass through the coffee shop?

Your answer

Solving needs a free account

Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.

Discussion

Sign in to join the discussion · reading is open to everyone

💡 Discussion rules

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

Shortest routes across a city gridRook routes on a five-by-two block walkCorner-to-corner routes on a square gridGrid routes avoiding a closed intersectionPicking a committee with exactly two menInviting four of ten friends to dinner
All questions →