Mathematics (JEE)Very hardCodeforces Div2 D

How many distinct arrangements of the letters of TOMATOES have no two vowels next to each other? (The vowels are O, A, O, E.)

  1. A. 10080
  2. B. 1440
  3. C. 2880
  4. D. 720

Correct answer: D. 720

Place the vowels into 4 of the 5 gaps between the consonants: C(5,4) = 5 ways, then (4!/2!) orders for the consonants and (4!/2!) for the vowels, giving 720.

More Permutations, Combinations and Probability questions

Exams that ask this topic