Hi ,
I would like to try the code.
I am new to .net.
If i give a string “rrrrrraaassaaabbaaa” as an input, It would generate “r,6” as output because ‘r’ shows up the most times in a row. The character ‘a’ shows up more times overall, but i am interested in the longest contiguous run.
can any one help to write this logic.
Thanks
Ranjani.