Placement AptitudeHardTCS NQT Advanced · Amazon OA

Two different cells of a 3 × 3 grid are chosen. In how many ways can they be chosen so that they do NOT share a side?

  1. A. 12
  2. B. 24
  3. C. 36
  4. D. 20

Correct answer: B. 24

All pairs: C(9, 2) = 36. Pairs sharing a side: 2 per row × 3 rows + 2 per column × 3 columns = 12. So 36 − 12 = 24 (diagonal neighbours are allowed).

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic