leetle

Daily challenge for 2025-07-01

182. Find Most Common Character

Write a function solve that takes a string and returns the character that appears most frequently. If there are multiple characters with the same highest frequency, return the one that appears first in the string.

Example:
Input: "hello"
Output: "l"

The character 'l' appears twice, which is more than any other character.

Run this challenge interactively in Python or JavaScript when the app loads.