Skip to content

Commit f07e37a

Browse files
authored
Create 2586.py
1 parent a8271c2 commit f07e37a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Diff for: 2501-3000/2586.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class Solution(object):
2+
def vowelStrings(self, words, left, right):
3+
"""
4+
:type words: List[str]
5+
:type left: int
6+
:type right: int
7+
:rtype: int
8+
"""
9+
s="aeiou"
10+
cnt=0
11+
for i in range(left,right+1):
12+
if words[i][0] in s and words[i][-1] in s:cnt+=1
13+
return cnt

0 commit comments

Comments
 (0)