suppose I have the string like
string str="VAARONASSTGSO";
if the same character are appears in sequence then consider their count at once,in above string AA appears in sequence then consider their count at one.
V=1
A=3
R=1
O=2
N=1
S=2
T=1
G=1
Find the occurance of characters in a string using c#
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Manas MohapatraRank #182 · 13.2K reputationPosted Apr 21, 2017, 1:31 AM EDT
Vishal DusaneRank #5,268 · 305 reputationPosted Apr 21, 2017, 1:47 AM EDT
Tapan PatelRank #614 · 3.9K reputationPosted Apr 21, 2017, 5:11 AM EDT