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…
来源
答案
Leetcode Daily Question
leetcode.com
2026-05-28
🔴
3093.longest-common-suffix-queries
🏷️
Tags
#trie
#array
#string
Telegraph
longest-common-suffix-queries
You are given two arrays of
strings
wordsContainer and wordsQuery. For each wordsQuery[i], you need to find a
string
from wordsContainer that has the longest common suffix with wordsQuery[i]. If there are two or more
strings
in wordsContainer that share the…
Source
Solution
Leetcode Daily Question
leetcode.cn
2026-06-13
🟢
3838.weighted-word-mapping
🏷️
Tags
#array
#string
#simulation
Telegraph
weighted-word-mapping
给你一个字符串数组 words,其中每个字符串表示一个由小写英文字母组成的单词。 同时给你一个长度为 26 的整数数组 weights,其中 weights[i] 表示第 i 个小写英文字母的权重。 单词的 权重 定义为其所有字符权重的 总和。 对于每个单词,将其权重对 26 取模,并将结果按字母倒序映射到一个小写英文字母(0 -> 'z', 1 -> 'y', ..., 25 -> 'a')。 返回一个由所有单词映射后的字符按顺序连接而成的字符串。 示例 1: 输入: words = ["abcd"…
来源
答案