#3120

Count the Number of Special Characters I

easy · 66.7% accepted · 172 likes · top 72%

hash table · string

⊣ practice⊣ open on leetcode ↗

Description

You are given a string word. A letter is called special if it appears both in lowercase and uppercase in word.

Return the number of special letters in word.

Solution