3227.cpp (344B)
1 class Solution { 2 public: 3 bool doesAliceWin(const string &s) const { 4 for (const char c : s) { 5 if (c == 'a') return true; 6 if (c == 'e') return true; 7 if (c == 'i') return true; 8 if (c == 'o') return true; 9 if (c == 'u') return true; 10 } 11 12 return false; 13 } 14 };