mirror of
https://github.com/devenperez/leetcode.git
synced 2026-06-13 14:57:08 +00:00
13 lines
287 B
Python
13 lines
287 B
Python
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 |