Leetcode Daily Question
@leetcodeDailyQuestionChannel
2.39K
subscribers
517
files
2.58K
links
Why are you asking me to do Leetcode for this CSS job?
Download Telegram
Join
Leetcode Daily Question
2.39K subscribers
Leetcode Daily Question
leetcode.cn
2026-05-26
🟢
3120.count-the-number-of-special-characters-i
🏷️
Tags
#hash_table
#string
Telegraph
count-the-number-of-special-characters-i
给你一个字符串 word。如果 word 中同时存在某个字母的小写形式和大写形式,则称这个字母为 特殊字母 。 返回 word 中 特殊字母 的数量。 示例 1: 输入:word = "aaAbcBC" 输出:3 解释: word 中的特殊字母是 'a'、'b' 和 'c'。 示例 2: 输入:word = "abc" 输出:0 解释: word 中不存在大小写形式同时出现的字母。 示例 3: 输入:word = "abBCab" 输出:1 解释: word 中唯一的特殊字母是 'b'。 提示:
来源
答案
Leetcode Daily Question
leetcode.com
2026-05-26
🟢
3120.count-the-number-of-special-characters-i
🏷️
Tags
#hash_table
#string
Telegraph
count-the-number-of-special-characters-i
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. Example 1: Input: word = "aaAbcBC" Output: 3 Explanation: The special characters in word are 'a'…
Source
Solution
Leetcode Daily Question
leetcode.cn
2026-05-27
🟡
3121.count-the-number-of-special-characters-ii
🏷️
Tags
#hash_table
#string
Telegraph
count-the-number-of-special-characters-ii
给你一个字符串 word。如果 word 中同时出现某个字母 c 的小写形式和大写形式,并且 每个 小写形式的 c 都出现在第一个大写形式的 c 之前,则称字母 c 是一个 特殊字母 。 返回 word 中 特殊字母 的数量。 示例 1: 输入:word = "aaAbcBC" 输出:3 解释: 特殊字母是 'a'、'b' 和 'c'。 示例 2: 输入:word = "abc" 输出:0 解释: word 中不存在特殊字母。 示例 3: 输入:word = "AbBCab" 输出:0 解释: word…
来源
答案
Leetcode Daily Question
leetcode.com
2026-05-27
🟡
3121.count-the-number-of-special-characters-ii
🏷️
Tags
#hash_table
#string
Telegraph
count-the-number-of-special-characters-ii
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…
Source
Solution
Leetcode Daily Question
leetcode.cn
2026-05-28
🔴
3093.longest-common-suffix-queries
🏷️
Tags
#trie
#array
#string
Telegraph
longest-common-suffix-queries
给你两个字符串数组 wordsContainer 和 wordsQuery 。 对于每个 wordsQuery[i] ,你需要从 wordsContainer 中找到一个与 wordsQuery[i] 有 最长公共后缀 的字符串。如果 wordsContainer 中有两个或者更多字符串有最长公共后缀,那么答案为长度 最短 的。如果有超过两个字符串有 相同 最短长度,那么答案为它们在 wordsContainer 中出现 更早 的一个。 请你返回一个整数数组 ans ,其中 ans[i]是 wordsC…
来源
答案