Vowels in Each Row
EasyP3Coding
For every string in rows, decide whether it contains at least one vowel (a, e, i, o, u). Return an array of booleans in the same order: true if the string has a vowel, false otherwise.
Example 1
- Input
- rows = ["hello","sky"]
- Output
- [true,false]
Example 2
- Input
- rows = []
- Output
- []
Example 3
- Input
- rows = [""]
- Output
- [false]
Constraints
- 0 <= rows.length <= 1000
- 0 <= rows[i].length <= 1000
- Each string 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.