check each letter can appear with the same occurence count in each word(C++)
count the occurence of each letter, regardless of which word(s) it appear\n* test if the number of occurence of each letter can be divided equally between the n
* count the occurence of each letter, regardless of which word(s) it appear\n* test if the number of occurence of each letter can be divided equally between the number of words\n\n\n```\n\nbool makeEqual(const vector<string>& words) {\n        //check each letter can appear with the same occurence count in each word\n        \n        array<size_t, 128> counts = {};\n        \n        for_each(cbegin(words), cend(words), \n                 [&counts] (string_view word) {\n                     for (const auto ch : word) ++counts[ch];\n                 }\n                 );\n        const auto words_count {words.size()};\n        return all_of(cbegin(counts), cend(counts), [words_count](size_t occurences ) {return occurences % words_count == 0;});\n\n    }\n
['C']