// Problem URL: https://leetcode.com/problems/single-number-iii/ /* * Runtime - 0ms * Memory - 5.9mb */ class Solution { public: bool detectCapitalUse(string word) { bool all_caps = 1; bool all_small = 1; bool first_letter_caps = isupper(word[0]); for(int i=1; i