Leetcode Daily Question
@leetcodeDailyQuestionChannel
2.39K
subscribers
517
files
2.53K
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-06-16
🟡
3612.process-string-with-special-operations-i
🏷️
Tags
#string
#simulation
Telegraph
process-string-with-special-operations-i
给你一个字符串 s,它由小写英文字母和特殊字符:*、# 和 % 组成。 请根据以下规则从左到右处理 s 中的字符,构造一个新的字符串 result:
来源
答案
Leetcode Daily Question
leetcode.com
2026-06-16
🟡
3612.process-string-with-special-operations-i
🏷️
Tags
#string
#simulation
Telegraph
process-string-with-special-operations-i
You are given a string s consisting of lowercase English letters and the special characters: *, #, and %. Build a new string result by processing s according to the following rules from left to right:
Source
Solution
Leetcode Daily Question
leetcode.cn
2026-06-17
🔴
3614.process-string-with-special-operations-ii
🏷️
Tags
#string
#simulation
Telegraph
process-string-with-special-operations-ii
给你一个字符串 s,由小写英文字母和特殊字符:'*'、'#' 和 '%' 组成。 同时给你一个整数 k。
来源
答案
Leetcode Daily Question
leetcode.com
2026-06-17
🔴
3614.process-string-with-special-operations-ii
🏷️
Tags
#string
#simulation
Telegraph
process-string-with-special-operations-ii
You are given a string s consisting of lowercase English letters and the special characters: '*', '#', and '%'. You are also given an integer k. Build a new string result by processing s according to the following rules from left to right:
Source
Solution
Leetcode Daily Question
leetcode.cn
2026-06-18
🟡
1344.angle-between-hands-of-a-clock
🏷️
Tags
#math
Telegraph
angle-between-hands-of-a-clock
给你两个数 hour 和 minutes 。请你返回在时钟上,由给定时间的时针和分针组成的较小角的角度(60 单位制)。 示例 1: 输入:hour = 12, minutes = 30 输出:165 示例 2: 输入:hour = 3, minutes = 30 输出;75 示例 3: 输入:hour = 3, minutes = 15 输出:7.5 示例 4: 输入:hour = 4, minutes = 50 输出:155 示例 5: 输入:hour = 12, minutes = 0 输出:0…
来源
答案
Leetcode Daily Question
leetcode.com
2026-06-18
🟡
1344.angle-between-hands-of-a-clock
🏷️
Tags
#math
Telegraph
angle-between-hands-of-a-clock
Given two numbers, hour and minutes, return the smaller angle (in degrees) formed between the hour and the minute hand. Answers within 10-5 of the actual value will be accepted as correct. Example 1: Input: hour = 12, minutes = 30 Output: 165 Example 2:…
Source
Solution
Leetcode Daily Question
leetcode.cn
2026-06-19
🟢
1732.find-the-highest-altitude
🏷️
Tags
#array
#prefix_sum
Telegraph
find-the-highest-altitude
有一个自行车手打算进行一场公路骑行,这条路线总共由 n + 1 个不同海拔的点组成。自行车手从海拔为 0 的点 0 开始骑行。 给你一个长度为 n 的整数数组 gain ,其中 gain[i] 是点 i 和点 i + 1 的 净海拔高度差(0 <= i < n)。请你返回 最高点的海拔 。 示例 1: 输入:gain = [-5,1,5,0,-7] 输出:1 解释:海拔高度依次为 [0,-5,-4,1,1,-6] 。最高海拔为 1 。 示例 2: 输入:gain = [-4,-3,-2,-1,4,3…
来源
答案
Leetcode Daily Question
leetcode.com
2026-06-19
🟢
1732.find-the-highest-altitude
🏷️
Tags
#array
#prefix_sum
Telegraph
find-the-highest-altitude
There is a biker going on a road trip. The road trip consists of n + 1 points at different altitudes. The biker starts his trip on point 0 with altitude equal 0. You are given an integer array gain of length n where gain[i] is the net gain in altitude between…
Source
Solution
Leetcode Daily Question
leetcode.cn
2026-06-20
🔴
1840.maximum-building-height
🏷️
Tags
#array
#math
#sorting
Telegraph
maximum-building-height
在一座城市里,你需要建 n 栋新的建筑。这些新的建筑会从 1 到 n 编号排成一列。 这座城市对这些新建筑有一些规定:
来源
答案
Leetcode Daily Question
leetcode.com
2026-06-20
🔴
1840.maximum-building-height
🏷️
Tags
#array
#math
#sorting
Telegraph
maximum-building-height
You want to build n new buildings in a city. The new buildings will be built in a line and are labeled from 1 to n. However, there are city restrictions on the heights of the new buildings:
Source
Solution
Leetcode Daily Question
leetcode.cn
2026-06-21
🟡
1833.maximum-ice-cream-bars
🏷️
Tags
#greedy
#array
#counting_sort
#sorting
Telegraph
maximum-ice-cream-bars
夏日炎炎,小男孩 Tony 想买一些雪糕消消暑。 商店中新到 n 支雪糕,用长度为 n 的数组 costs 表示雪糕的定价,其中 costs[i] 表示第 i 支雪糕的现金价格。Tony 一共有 coins 现金可以用于消费,他想要买尽可能多的雪糕。 注意:Tony 可以按任意顺序购买雪糕。 给你价格数组 costs 和现金量 coins ,请你计算并返回 Tony 用 coins 现金能够买到的雪糕的 最大数量 。 你必须使用计数排序解决此问题。 示例 1: 输入:costs = [1,3,2,4…
来源
答案
Leetcode Daily Question
leetcode.com
2026-06-21
🟡
1833.maximum-ice-cream-bars
🏷️
Tags
#greedy
#array
#counting_sort
#sorting
Telegraph
maximum-ice-cream-bars
It is a sweltering summer day, and a boy wants to buy some ice cream bars. At the store, there are n ice cream bars. You are given an array costs of length n, where costs[i] is the price of the ith ice cream bar in coins. The boy initially has coins coins…
Source
Solution
Leetcode Daily Question
leetcode.cn
2026-06-22
🟢
1189.maximum-number-of-balloons
🏷️
Tags
#hash_table
#string
#counting
Telegraph
maximum-number-of-balloons
给你一个字符串 text,你需要使用 text 中的字母来拼凑尽可能多的单词 "balloon"(气球)。 字符串 text 中的每个字母最多只能被使用一次。请你返回最多可以拼凑出多少个单词 "balloon"。 示例 1: 输入:text = "nlaebolko" 输出:1 示例 2: 输入:text = "loonbalxballpoon" 输出:2 示例 3: 输入:text = "leetcode" 输出:0 提示:
来源
答案
Leetcode Daily Question
leetcode.com
2026-06-22
🟢
1189.maximum-number-of-balloons
🏷️
Tags
#hash_table
#string
#counting
Telegraph
maximum-number-of-balloons
Given a string text, you want to use the characters of text to form as many instances of the word "balloon" as possible. You can use each character in text at most once. Return the maximum number of instances that can be formed. Example 1: Input: text =…
Source
Solution
Leetcode Daily Question
leetcode.cn
2026-06-23
🔴
3699.number-of-zigzag-arrays-i
🏷️
Tags
Telegraph
number-of-zigzag-arrays-i
给你 三个整数 n、l 和 r。
来源
答案
Leetcode Daily Question
leetcode.com
2026-06-23
🔴
3699.number-of-zigzag-arrays-i
🏷️
Tags
Telegraph
number-of-zigzag-arrays-i
You are given three integers n, l, and r. A ZigZag array of length n is defined as follows:
Source
Solution