ProgrammingVery hard

A 3 x 3 grid has one blocked cell at row 1, column 1. How many right-or-down paths lead from the top-left to the bottom-right cell?

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

Correct answer: D. 2

Six paths exist without the block, and four of them pass through the centre. That leaves 2 paths.

More C Programming questions

Exams that ask this topic