Skip to content

Commit 3b17c80

Browse files
authored
Create 3227. Vowels Game in a String (#883)
2 parents 01608e1 + e6af379 commit 3b17c80

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

3227. Vowels Game in a String

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
class Solution {
2+
public:
3+
bool doesAliceWin(string s) {
4+
for(char x:s){
5+
if(x=='a' || x=='e' || x=='i' || x=='o' || x=='u'){
6+
return true;
7+
}
8+
}
9+
return false;
10+
}
11+
};

0 commit comments

Comments
 (0)