algorithms.tutorialhorizon.com
Longest contiguous character in a given String | Algorithms
Objective: Given an input string, write an algorithm to find the longest contiguous character or in other words, find a maximum consecutive character in the string. Example: Input: "aaabbccccddbbaaa" Output: c, count = 4 Input: "bbbbb" Output: b, count=5