ProgrammingHardGATE CS · Campus placements

In a 3 x 3 grid, a walker can move only right or down from the top-left corner to the bottom-right corner. How many distinct paths exist?

  1. A. 4
  2. B. 20
  3. C. 6
  4. D. 10

Correct answer: C. 6

Each path has four moves, two right and two down, so the count is C(4,2) = 6. The DP table of paths gives the same value.

More C Programming questions

Exams that ask this topic