Watch 10 video solutions for Remove Vowels from a String, a easy level problem involving String. This walkthrough by NeetCodeIO has 33,889 views views. Want to try solving it yourself? Practice on FleetCode or read the detailed text solution.
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 <= 1000s consists of only lowercase English letters.