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
Altre recensioni di colloqui per SDE 1 presso 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.
Ho presentato la mia candidatura online. Ho sostenuto un colloquio presso Infosys (Chennai) nel mese di nov 2025
Colloquio
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.
Domande di colloquio [1]
Domanda 1
Java Encapsulation, Access specifiers, Aggregation,composition,hooks in react?