Content has been removed on Author’s request. Recommended Solve DSA problems on GfG Practice. Solve Problems My Personal Notes arrow_drop_up Save
Algorithm: Let input string be "geeksforgeeks"
1: Construct 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 value greater than 0.