# [3227\. Vowels Game in a String](https://leetcode.com/problems/vowels-game-in-a-string/) :::spoiler Solution ```cpp= class Solution { public: bool doesAliceWin(string s) { for (int i = 0; i < s.size(); ++i) { if (s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' || s[i] == 'u') return true; } return false; } }; ``` - T: $O(n)$ - S: $O(1)$ :::
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up