Most Common Character

Medium

Given a string, find the character that appears most often. Print the character and its count separated by a colon and space, like "a: 5". If there's a tie, any of the most common is fine.

Given variables
text: a string to analyze
2 test cases
Hit Test to see output...
Loading WASM...Docs

You are not logged in.