← 返回 airbnb 的题目列表Algorithm question with test cases
类型:online_judge
Write a function to perform the following task:
Given a string, remove all of the vowel letters (a, e, i, o, u) and return the result.
The processed string should not contain any uppercase or lowercase vowels.
The input string won't exceed 1000 characters in length.
Provided test cases:
Input: "Hello World" Output: "Hll Wrld"
Input: "beautiful" Output: "btfl"
Input: "AEIOU are vowels" Output: " r vwls"
Input: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" Output: "BCDFGHJKLMNPQRSTVWXYZbcdfghjklmnpqrstvwxyz"
Input: "" Output: ""
Example
Input
"Hello World"
Output
"Hll Wrld"