1446. Consecutive Characters: Easy to Understand ✔✔
Code\n\nclass Solution {\npublic:\n    int maxPower(string s) {\n        int currCount = 1, power = 0;\n        for (int i = 1; i < s.size(); i++)\n        {\n 
# Code\n```\nclass Solution {\npublic:\n    int maxPower(string s) {\n        int currCount = 1, power = 0;\n        for (int i = 1; i < s.size(); i++)\n        {\n            if (s[i - 1] == s[i]) currCount++;\n            else\n            {\n                power = max(currCount, power);\n                currCount = 1;\n            }\n        }\n        power = max(currCount, power);\n        return power;\n    }\n};\n```
['C++']