most frequent character - MATLAB Cody - MATLAB Central

Problem 2139. most frequent character

Difficulty:Rate

Obtain the most frequent character. For example,

 s='balaram';
 output='a';

If there is a tie between letters, return the first result alphabetically.

Solution Stats

61.74% Correct | 38.26% Incorrect
Last Solution submitted on Jan 06, 2025

Problem Comments

Solution Comments

Show comments

Group

Project Euler II Image
Project Euler II
  • 12 Problems
  • 51 Finishers

Problem Recent Solvers155

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page