Placement AptitudeHardCAT · Amazon OA

Shortest grid paths go from (0, 0) to (3, 3) by unit steps right or up. How many of them pass through (1, 1) or (2, 2) (or both)?

  1. A. 24
  2. B. 16
  3. C. 8
  4. D. 20

Correct answer: B. 16

Through (1, 1): 2 × C(4, 2) = 12. Through (2, 2): C(4, 2) × 2 = 12. Through both: 2 × 2 × 2 = 8. Union: 12 + 12 − 8 = 16.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic