leetcode

Solution to some Leetcode problems written in C++
git clone git://git.dimitrijedobrota.com/leetcode.git
Log | Files | Refs | README | LICENSE

3227.cpp (344B)


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