Leetcode Daily Question
@leetcodeDailyQuestionChannel
2.46K
subscribers
517
files
2.16K
links
Why are you asking me to do Leetcode for this CSS job?
Download Telegram
Join
Leetcode Daily Question
2.46K subscribers
Leetcode Daily Question
leetcode.cn
2025-12-04
🟡
2211.count-collisions-on-a-road
🏷️
Tags
#stack
#string
#simulation
Telegraph
count-collisions-on-a-road
在一条无限长的公路上有 n 辆汽车正在行驶。汽车按从左到右的顺序按从 0 到 n - 1 编号,每辆车都在一个 独特的 位置。 给你一个下标从 0 开始的字符串 directions ,长度为 n 。directions[i] 可以是 'L'、'R' 或 'S' 分别表示第 i 辆车是向 左 、向 右 或者 停留 在当前位置。每辆车移动时 速度相同 。 碰撞次数可以按下述方式计算:
来源
答案
Leetcode Daily Question
leetcode.com
2025-12-04
🟡
2211.count-collisions-on-a-road
🏷️
Tags
#stack
#string
#simulation
Telegraph
count-collisions-on-a-road
There are n cars on an infinitely long road. The cars are numbered from 0 to n - 1 from left to right and each car is present at a unique point. You are given a 0-indexed string directions of length n. directions[i] can be either 'L', 'R', or 'S' denoting…
Source
Solution
Leetcode Daily Question
leetcode.cn
2025-12-12
🟡
3433.count-mentions-per-user
🏷️
Tags
#array
#math
#sorting
#simulation
Telegraph
count-mentions-per-user
给你一个整数 numberOfUsers 表示用户总数,另有一个大小为 n x 3 的数组 events 。 每个 events[i] 都属于下述两种类型之一:
来源
答案
Leetcode Daily Question
leetcode.com
2025-12-12
🟡
3433.count-mentions-per-user
🏷️
Tags
#array
#math
#sorting
#simulation
Telegraph
count-mentions-per-user
You are given an integer numberOfUsers representing the total number of users and an array events of size n x 3. Each events[i] can be either of the following two types:
Source
Solution