Medium
Vowels Game in a String — Python
Full explanation · Time O(n) · Space O(1)
# Time: O(n)
# Space: O(1)
# math
class Solution(object):
def doesAliceWin(self, s):
"""
:type s: str
:rtype: bool
"""
return any(x in "aeiou" for x in s)