Skip to content

Commit 998c7c9

Browse files
committed
Time: 36 ms (44.66%), Space: 16.7 MB (6.47%) - LeetHub
1 parent 93670f9 commit 998c7c9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import re
2+
3+
4+
class Solution:
5+
def removeVowels(self, s: str) -> str:
6+
return re.sub(r'[aeiou]', '', s)
7+
8+
9+
s = "leetcodeisacommunityforcoders"
10+
print(Solution().removeVowels(s))

0 commit comments

Comments
 (0)