Back to problems

Answer four string/array/battery coding questions

Algorithm · Meta · Medium

Problem A Every character of an ASCII string s falls into one of two letter classes or into neither. An uppercase English letter occupies code points 65 through 90, a lowercase English letter occupies code points 97 through 122, and any other character is irrelevant here. Count the characters of s that are uppercase English letters and the characters that are lowercase English letters, then return the first count minus the second. Characters outside the two letter ranges…

Checking your access…