First word with greatest number of repeated letters
Filed under Hexaview
The question
Given a string parameter, return the first word with the greatest number of repeated letters. Return -1 if no words have repeating letters.
No write-up yet. Related questions below have one.
Related Hexaview questions
Collected from public candidate posts and coding forums. Updated Nov 2026.