1897. Redistribute Characters to Make All Strings Equal: Super-Easy Solution 🔥🚀
Code\n\nclass Solution {\npublic:\n    bool makeEqual(vector<string>& words) {\n        // count char using hashing\n        vector<int> hash(26, 0);\n        f
# Code\n```\nclass Solution {\npublic:\n    bool makeEqual(vector<string>& words) {\n        // count char using hashing\n        vector<int> hash(26, 0);\n        for (int i = 0; i < words.size(); i++)\n        {\n            for (int j = 0; j < words[i].size(); j++)\n            {\n                hash[words[i][j] - \'a\']++;\n            }\n        }\n        // check if each char can be distributed equally\n        for (int i = 0; i < hash.size(); i++)\n        {\n            if (hash[i] > 0)\n            {\n                if (hash[i] % words.size() != 0) return false;\n            }\n        }\n        return true;\n    }\n};\n```
['C++']