Check String Has a Vowel
EasyP3Coding
Return true if the lowercase string s contains at least one of the vowels a, e, i, o, u, and false otherwise.
Example 1
- Input
- s = "hello"
- Output
- true
Example 2
- Input
- s = "sky"
- Output
- false
Example 3
- Input
- s = ""
- Output
- false
Constraints
- 0 <= s.length <= 10^5
- s consists of lowercase letters.
Hints
Give it a real attempt first. Run shows which examples fail.
Saved automatically
Run checks the 3 visible tests, Submit all 10. ⌘Enter runs, ⌘⇧Enter submits.