Find second-largest String in a HashMap
Filed under Finzly
The question
Given a HashMap with String keys and integer values, sort them and obtain the second-largest String. Optimize the brute-force approach.
No write-up yet. Related questions below have one.
Related Finzly questions
Collected from public candidate posts and coding forums. Updated Nov 2026.