Search
⌘K
Get Premium
Leetcode 2309. Greatest English Letter in Upper and Lower Case
Find the alphabetically largest English letter that appears in the input string in both lowercase and uppercase forms, returning it as an uppercase character (or an empty string if none exists). This is typically solved by tracking case occurrences (e.g., using sets) and checking letters from 'Z' to 'A'.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.