Feel Good Strings
EasyP3Coding
s is a lowercase string of even length N. If at least N / 2 of its characters are vowels (a, e, i, o, u), return the exact text Feel good!; otherwise return Feel bad!.
Example 1
- Input
- s = "aebc"
- Output
- "Feel good!"
Example 2
- Input
- s = "abcd"
- Output
- "Feel bad!"
Example 3
- Input
- s = "aeiouaeiou"
- Output
- "Feel good!"
Constraints
- 2 <= s.length <= 10^5, and the length is even
- 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 12. ⌘Enter runs, ⌘⇧Enter submits.