Vishal Dusane

Vishal Dusane

  • 1.2k
  • 465
  • 50.1k

find the occurance of characters in a string using c#

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