consecutive character - C++
\nint maxPower(string s) {\n\n // count  is max consecutive  characters \n    int count= 0;\n\t\n  // current temporary maxinum\n\tint current=1;\n\t\n// curren
```\nint maxPower(string s) {\n\n // count  is max consecutive  characters \n    int count= 0;\n\t\n  // current temporary maxinum\n\tint current=1;\n\t\n// current character \t\n\tchar curr=s[0];\n\t\n// current position of character in string s\t\n\tint i=1;\n\t\n\twhile(i!=s.length()){\n\t\tif(curr==s[i]){\n\t\t\tcurrent++;\n\t\t}else{\n\t\t\tcount=max(count,current);\n\t\t\tcurrent =1;\n\t\t\tcurr=s[i];\n\t\t}\n\t\ti++;\n\t}\n// if there is only length 1 then then we take max of count & current ,where current is 1 \n\treturn max(count,current);      \n    }\n\t\n```\n\ttime complexity: O(N)
['Linked List', 'C', 'C++']