3121. Count the Number of Special Characters II
Solved
Medium
Topics
premium lock icon
Companies
Hint
You are given a string word. A letter c is called special if it appears both in lowercase and uppercase in word, and every lowercase occurrence of c appears before the first uppercase occurrence of c.
Return the number of special letters in word.
Example 1:
Input: word = "aaAbcBC"
Output: 3
Explanation:
The special characters are 'a', 'b', and 'c'.
Example 2:
Input: word = "abc"
Output: 0
Explanation:
There are no special characters in word.
Example 3:
Input: word = "AbBCab"
Output: 0
Explanation:
There are no special characters in
Entretien facile
Candidature
J'ai passé un entretien chez Infosys
Entretien
First hr reach out, and scheduled an interview. Takes about a hour. Simple interview with a leetcode easy question. Then offer. Just one round. The offer is incredibly low, way below market. Also not negotiatable.
J'ai postulé en ligne. J'ai passé un entretien chez Infosys (Chennai) en nov. 2025
Entretien
I applied for a React developer role, but the interview was scheduled for a Mainframe position. During the interview, they asked both Java and React-related questions, as well as details about the projects I’ve worked on.
Questions d'entretien [1]
Question 1
Java Encapsulation, Access specifiers, Aggregation,composition,hooks in react?