Available question text
Count the number of letters that appear in both lowercase and uppercase in the string and whose every lowercase occurrence appears before that letter's first uppercase occurrence. The string length can be up to 2·10^5, so an O(n) scan with per-letter tracking is expected.
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 3121. Count the Number of Special Characters II
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source