#3121
Count the Number of Special Characters II
specialist · 975 · lc medium +32 · 43.3% accepted · 181 likes · top 25%
Description
Given a string word, a letter c is special if it appears in both cases and every lowercase occurrence comes strictly before every uppercase occurrence. Return the count of such special letters.
Code
1
2
3