Skip to content

Instantly share code, notes, and snippets.

@munguial
Created April 1, 2020 05:06
Show Gist options
  • Save munguial/4852f9adc81454dbf62a064108cb0687 to your computer and use it in GitHub Desktop.
Save munguial/4852f9adc81454dbf62a064108cb0687 to your computer and use it in GitHub Desktop.
Leetcode - Remove vowels from string
class Solution:
def removeVowels(self, S: str) -> str:
vowels = ['a', 'e', 'i', 'o', 'u']
result = ""
for x in S:
if x not in vowels:
result += x
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment