Available question text
Find the maximum value of freq[a] - freq[b] over all substrings of length ≥ k of a string (digits '0'–'4'), subject to character a having an odd frequency in the substring and character b having a nonzero even frequency; the small fixed alphabet and parity constraints are the central challenge for efficient search.
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 3445. Maximum Difference Between Even and Odd Frequency II
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source