PDA

View Full Version : How do you print duplicate characters from a string?



gunjanjain
07-02-2019, 11:30 PM
Hello friends,

How do you print duplicate characters from a string?

evejones
07-03-2019, 01:59 AM
I think this topic has been posted in irrelevant category

imriakapoor
07-04-2019, 10:16 PM
Your signature and question does not cooperate

HeavenlyBorn
07-16-2019, 09:59 PM
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
……

HeavenlyBorn
07-16-2019, 10:00 PM
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
��