Convert the string so it holds only distinct characters

Question Given a string convert that to a string which holds only distinct characters. Also, find the number of character to be changed to make the string distinct. Change only the characters that are not distinct. Output must be as follows…   Logic First, check each character for the count. If they appear more than once find […]

To find new friends in social network program

Question This is a Social Network Program. Given a friend’s name and list of her friends, find new friends and skip mutual friends. Input and output should be like one mentioned below. Social Network Progam: Social network program finds the people who have mutual friends like Facebook. The first line determines the number of current […]