Placement AptitudeHardAmazon OA · CAT

A path from (0, 0) to (5, 5) uses unit steps right or up and must never go above the line y = x (it may touch it). How many such paths are there?

  1. A. 252
  2. B. 126
  3. C. 42
  4. D. 132

Correct answer: C. 42

These are counted by the Catalan number C₅ = C(10, 5)/6 = 252/6 = 42 (equivalently 252 − C(10, 4) = 252 − 210 = 42 by the reflection trick). 252 counts all paths.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic