Monthly Archives: June 2012

Max count of consecutive occurrence of characters in a string

Given a string, print the maximum count of consecutive occurrence of characters within it. For example given an input string say “aaabbcccddddaa”, the output should be 4. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 {     class … Continue reading

Posted in Information Technology | Leave a comment