Time: 235 ms (6.82%), Space: 14 MB (2.27%) - LeetHub

This commit is contained in:
Deven
2025-09-11 22:29:47 -04:00
parent e119dc08a6
commit 3a6befad89
@@ -0,0 +1,13 @@
class Solution(object):
def doesAliceWin(self, s):
"""
:type s: str
:rtype: bool
"""
def isVowel(c):
return len(c) == 1 and c in "aeiou"
# Count vowels
numVowels = sum(map(isVowel, s))
return numVowels > 0