Leetcode Daily Question
@leetcodeDailyQuestionChannel
2.36K
subscribers
517
files
2.78K
links
Why are you asking me to do Leetcode for this CSS job?
Download Telegram
Join
Leetcode Daily Question
2.36K subscribers
Leetcode Daily Question
leetcode.cn
2026-10-24
🟢
2409.count-days-spent-together
🏷️
Tags
#math
#string
Telegraph
count-days-spent-together
Alice 和 Bob 计划分别去罗马开会。 给你四个字符串 arriveAlice ,leaveAlice ,arriveBob 和 leaveBob 。Alice 会在日期 arriveAlice 到 leaveAlice 之间在城市里(日期为闭区间),而 Bob 在日期 arriveBob 到 leaveBob 之间在城市里(日期为闭区间)。每个字符串都包含 5 个字符,格式为 "MM-DD" ,对应着一个日期的月和日。 请你返回 Alice和 Bob 同时在罗马的天数。 你可以假设所有日期都在 同一个 自然年,而且…
来源
答案
Leetcode Daily Question
leetcode.com
2026-10-24
🟢
2409.count-days-spent-together
🏷️
Tags
#math
#string
Telegraph
count-days-spent-together
Alice and Bob are traveling to Rome for separate business meetings. You are given 4
strings
arriveAlice, leaveAlice, arriveBob, and leaveBob. Alice will be in the city from the dates arriveAlice to leaveAlice (inclusive), while Bob will be in the city from…
Source
Solution