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?

  1. A. 204
  2. B. 285
  3. C. 120
  4. 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.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic