Qm

Paths across a six-by-six grid

A grid of 6 by 6 squares is drawn on paper (so it has 7 by 7 grid points). You start at the top-left corner point and walk along the grid lines to the bottom-right corner point, moving only right or down, one grid unit at a time.

How many different routes are there? Explain the counting idea, and say how the answer changes if the grid is 6 squares wide but only 4 squares tall.

Show a hint

Every route uses the same number of right moves and the same number of down moves. A route is completely described by when the down moves happen.

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 that pass a coffee shopGrid routes avoiding a closed intersection
All questions →