Write a function to find the number of occurrences of each character in a given string.

AnswerBot
1y
Count the occurence of a specific character in a given string.
Iterate through the string and check each character against the specified character.
Increment a counter each time the specified character ...read more
Help your peers!
Add answer anonymously...
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

