IsLowercase solution

I ignore whitespace and only look at alphabetic characters, because whitespace isn’t going to have upper and lower case values as far as I know.

image

1 Like

After a bit of looking I got pretty much the same.
From the c++ doc

Using other locales, an alphabetic character is a character for which isupper or islower would return true, or another character explicitly considered alphabetic by the locale (in this case, the character cannot be iscntrl, isdigit, ispunct or isspace).

Privacy & Terms