Placement AptitudeHardTCS NQT · Capgemini
A staircase has 8 steps. Kavya climbs it taking 1, 2 or 3 steps at a time, in any order. In how many different ways can she reach the top?
- A. 34
- B. 44
- C. 149
- D. 81
Correct answer: D. 81
If w(n) is the number of ways for n steps, the last move is 1, 2 or 3 steps, so w(n) = w(n−1) + w(n−2) + w(n−3) with w(0) = 1: 1, 1, 2, 4, 7, 13, 24, 44, 81. 34 allows only 1- and 2-steps (Fibonacci); 44 and 149 are the neighbouring terms read off at the wrong index.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- A 4-member committee is to be formed from 5 married couples so that it contains exactly one married couple. In how many ways can this be…
- Two cards are drawn together from a well-shuffled pack of 52. What is the probability that they are of the same suit or of the same rank?
- Two fair dice are thrown and the product of the numbers is found to be even. What is the probability that their sum is also even?
- Call a 3-digit number a 'peak' if its middle digit is strictly greater than both its first and last digits (for example 152 or 470). How…
- How many distinct arrangements can be made of all the letters of the word BOOKKEEPER?
- The letters of BOOKKEEPER are arranged at random. What is the probability that the three E's come together?