Available question text
Given a lowercase string, compute character frequencies and return the maximum possible difference freq(a1) - freq(a2) where a1 has an odd frequency and a2 has an even frequency. The input length is ≤100 and is guaranteed to contain at least one odd-frequency and one even-frequency character.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3442. Maximum Difference Between Even and Odd Frequency I
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source