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?
- A. 252
- B. 126
- C. 42
- 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.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- Six balls are thrown at random into 6 boxes, each ball independently and equally likely to land in any box. What is the expected number of…
- A pack of 52 cards is shuffled thoroughly. What is the probability that the four aces end up in four consecutive positions?
- In how many ways can 12 people be divided into 3 groups of 4 each (the groups have no names or order)?
- A family has 4 children. Assuming boys and girls are equally likely and independent, what is the probability that it has at least 2 boys…
- A box of 10 bulbs has exactly 2 defective ones. Bulbs are tested one at a time, without replacement, until both defective bulbs are found…
- How many 3-element subsets {a, b, c} of {1, 2, …, 20} with a < b < c form a geometric progression (the common ratio need not be a whole…