
Create a function to find repeated character in string

AnswerBot
1y

Function to find repeated characters in a string
Create a function that takes a string as input
Iterate through the string and store each character in a hashmap
If a character is already in the hashmap, ...read more

Help your peers!
Add answer anonymously...
Top ZS Consultant interview questions & answers
Popular interview questions of Consultant
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app