3
Reply

find the occurance of characters in a string using c#

Vsd Vsd

Vsd Vsd

Apr 21 2017 5:26 AM
251
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

Answers (3)