Trying to solve some of the general programming questions. As part of this, I have tried many ways to achieve the following. For example, I have a string like this
s = "abbcddeeffffcccddddggggghhhiaajjjkk"
I want to find out the maximum successive occurrence of each character in the given string. In the above case, the output should look like,
a - 2
b - 2
c - 3
d - 4
e - 2
f - 4
g - 5 etc