Placement AptitudeHardInfosys · Capgemini pattern

You walk from (0, 0) to (4, 4) on a grid, one unit east or north at a time. The junctions (1, 1) and (3, 3) are closed. How many shortest routes avoid both closed junctions?

  1. A. 30
  2. B. 14
  3. C. 38
  4. D. 46

Correct answer: B. 14

Total C(8, 4) = 70. Through (1, 1): 2 × C(6, 3) = 40. Through (3, 3): C(6, 3) × 2 = 40. Through both: 2 × C(4, 2) × 2 = 24. Avoiding both = 70 − 40 − 40 + 24 = 14. 30 avoids only one closed junction; 46 = 70 − 24 removes only the routes through both. Without adding back the 24, the count would even go negative.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic