mirror of
https://github.com/devenperez/leetcode.git
synced 2026-06-13 03:27:07 +00:00
Time: 235 ms (6.82%), Space: 14 MB (2.27%) - LeetHub
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user