Convert "aaabbccc" to "3a2b3c" by using c#
Can anyone tell me how to convert "aaabbccc" to "3a2b3c" using c#...
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jul 20, 2015, 2:12 AM EDT
protected void countOccurance()
{
}
output- 3a2b3cUpendra Pratap ShahiRank #329 · 7.5K reputationPosted Jul 20, 2015, 2:22 AM EDT
Raja ARank #4,480 · 341 reputationPosted Jul 20, 2015, 2:20 AM EDT
Raja ARank #4,480 · 341 reputationPosted Jul 20, 2015, 2:23 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jul 20, 2015, 2:28 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jul 20, 2015, 2:29 AM EDT