Find the maximum consecutive occurrences of a character in a string.
Anonymous User
3530

For e.g. “aaaabbbbaaaaaaacd”, should result in a: 7, b: 3, c: 1, d: 1 NOTE: “a” occurs twice consecutively, but the second instance has the maximum occurrence

Comments (6)