Placement AptitudeHardTCS NQT · Infosys

How many 3-digit numbers (100 to 999) have exactly two equal digits (the third digit different)?

  1. A. 252
  2. B. 270
  3. C. 243
  4. D. 216

Correct answer: C. 243

Complement: all 900 numbers − all digits different (9 × 9 × 8 = 648) − all three equal (9) = 243. Directly: the patterns AAB, ABA and BAA each give 9 × 9 = 81 numbers, and 3 × 81 = 243.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic