Talentd/FleetCode/Problems/

1119. Remove Vowels from a String

Easy
Read SolutionWatch Video

1119. Remove Vowels from a String

Easy91.2% AcceptancePremium
PremiumFree on FleetCode

Given a string s, remove the vowels 'a', 'e', 'i', 'o', and 'u' from it, and return the new string.

Example 1:

Input: s = "leetcodeisacommunityforcoders"
Output: "ltcdscmmntyfrcdrs"

Example 2:

Input: s = "aeiou"
Output: ""

Constraints:

  • 1 <= s.length <= 1000
  • s consists of only lowercase English letters.
Asked by 1 company
Similar Questions

Loading editor...

"leetcodeisacommunityforcoders"