Placement AptitudeVery hardCAT · Infosys
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 many 3-digit peaks are there?
- A. 204
- B. 285
- C. 120
- D. 240
Correct answer: D. 240
For middle digit b, the first digit can be 1 to b − 1 (b − 1 ways) and the last 0 to b − 1 (b ways), so the total is Σ b(b − 1) for b = 2 to 9 = 2 + 6 + 12 + 20 + 30 + 42 + 56 + 72 = 240. 204 wrongly forbids a last digit 0; 285 allows a leading 0.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- 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?
- A fair die is rolled three times. What is the probability that the largest of the three numbers is exactly 4?
- A fair die is rolled again and again until some number appears that has already appeared before. What is the expected number of rolls…
- A 3-person panel is picked at random from 4 senior and 6 junior engineers. Given that the panel has at least one senior engineer, what is…
- A 6-digit locker code (digits 0–9, leading 0 allowed) uses exactly two different digits, each appearing exactly three times, such as…