Cody

Problem 2139. most frequent character

Solution 882269

Submitted on 26 Apr 2016 by Zikobrelli
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
x = 'purusa'; y_correct = 'u'; assert(isequal(frequent_character(x),y_correct))

X = 64 69 66 69 67 49 r = 1 1 1 1 2 c = 49 64 66 67 69 y = u

2   Pass
x = 'rama'; y_correct = 'a'; assert(isequal(frequent_character(x),y_correct))

X = 66 49 61 49 r = 2 1 1 c = 49 61 66 y = a

Suggested Problems

More from this Author9

Community Treasure Hunt

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

Start Hunting!