Hash Table
3442. Maximum Difference Between Even and Odd Frequency I
Given a string s. Find the maximum of (frequency of a character with odd frequency) − (frequency of a character with even frequency), where both characters occur (frequency > 0).
Loading…