1p3a_oj Question

Maximum Occurring Character

Question Details

Given a string, find the character that appears most frequently. If there are multiple characters with the same frequency, return the lexicographically smallest character. Sample Input abbccc

Full Details

🔒

Unlock all Sofi questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a reported interview question from a sofi interview for a swe role during the coding round.

It covers the following topics: Strings .

Topics