Tap here to switch tabs
Problem
Submissions

Problem: Count the Number of Special Characters I

med
30 min
Try to solve the Count the Number of Special Characters I problem.

Statement

You are given a string word. A letter is considered a special character if it appears in word in both its lowercase and uppercase forms.

Return the total number of special characters present in word.

Constraints:

  • 1≤1 \leq word.length ≤50\leq 50

  • word consists of only lowercase and uppercase English letters.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Count the Number of Special Characters I

med
30 min
Try to solve the Count the Number of Special Characters I problem.

Statement

You are given a string word. A letter is considered a special character if it appears in word in both its lowercase and uppercase forms.

Return the total number of special characters present in word.

Constraints:

  • 1≤1 \leq word.length ≤50\leq 50

  • word consists of only lowercase and uppercase English letters.