Skip to content
Onsite

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

Run checks the 3 visible tests, Submit all 12.