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
Otras evaluaciones sobre las entrevistas para el cargo de SDE 1 en Infosys
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.
Me postulé en línea. Acudí a una entrevista en Infosys (Chennai) en nov 2025
Entrevista
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.
Preguntas de entrevista [1]
Pregunta 1
Java Encapsulation, Access specifiers, Aggregation,composition,hooks in react?