Hello friends,
How do you print duplicate characters from a string?
Printable View
Hello friends,
How do you print duplicate characters from a string?
I think this topic has been posted in irrelevant category
Your signature and question does not cooperate
Algorithm: Let the input string be “geeks for geeks”
1: Construct a character count array from the input string.
count[‘e’] = 4
count[‘g’] = 2
count[‘k’] = 2
……
Algorithm: Let the input string be �geeks for geeks�
1: Construct a character count array from the input string.
count[�e�] = 4
count[�g�] = 2
count[�k�] = 2
��