Author Topic: duplicate characters from String ?  (Read 29 times)

Sonamkumari

  • Full Member
  • ***
  • Posts: 109
  • Welcome to Digital Marketing Forum!
    • View Profile
    • solvemyloveproblem
duplicate characters from String ?
« on: April 04, 2019, 12:20:46 am »
Hello Dear,

                 Please Tell Me How to Print duplicate characters from String ?

Kajal

  • Hero Member
  • *****
  • Posts: 2473
  • Welcome to Digital Marketing Forum!
    • View Profile
Re: duplicate characters from String ?
« Reply #1 on: June 06, 2019, 11:33:10 pm »
1: Construct a character count array from the input string.

count[‘e’] = 4
count[‘g’] = 2
count[‘k’] = 2
……

2: Print all the indexes from the constructed array which have a value greater than 1.

 

Digital Marketing Forum is a do-follow forum, post and discuss IT topics here and get dofollow signature. Discuss about SEO, SMO, Directory Submission, 301 redirection, robots, social bookmarking, Web design and development.