会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
geek0070
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
14
下一页
2025年7月8日
Leetcode 1154. 一年中的第几天
摘要: 1.题目基本信息 1.1.题目描述 给你一个字符串 date ,按 YYYY-MM-DD 格式表示一个 现行公元纪年法 日期。返回该日期是当年的第几天。 1.2.题目地址 https://leetcode.cn/problems/day-of-the-year/description/ 2.解题方法
阅读全文
posted @ 2025-07-08 08:41 Geek0070
阅读(12)
评论(0)
推荐(0)
2025年7月7日
Leetcode 1070. 产品销售分析 III
摘要: 1.题目基本信息 1.1.题目描述 销售表 Sales: + + + | Column Name | Type | + + + | sale_id | int | | product_id | int | | year | int | | quantity | int | | price | int
阅读全文
posted @ 2025-07-07 07:44 Geek0070
阅读(6)
评论(0)
推荐(0)
2025年7月6日
Leetcode 214. 最短回文串
摘要: 1.题目基本信息 1.1.题目描述 给定一个字符串 s,你可以通过在字符串前面添加字符将其转换为回文串。找到并返回可以用这种方式转换的最短回文串。 1.2.题目地址 https://leetcode.cn/problems/shortest-palindrome/description/ 2.解题方
阅读全文
posted @ 2025-07-06 15:44 Geek0070
阅读(5)
评论(0)
推荐(0)
2025年7月4日
Leetcode 1103. 分糖果 II
摘要: 1.题目基本信息 1.1.题目描述 排排坐,分糖果。 我们买了一些糖果 candies,打算把它们分给排好队的 n = num_people 个小朋友。 给第一个小朋友 1 颗糖果,第二个小朋友 2 颗,依此类推,直到给最后一个小朋友 n 颗糖果。 然后,我们再回到队伍的起点,给第一个小朋友 n +
阅读全文
posted @ 2025-07-04 08:10 Geek0070
阅读(20)
评论(0)
推荐(0)
2025年7月3日
Leetcode 982. 按位与为零的三元组
摘要: 1.题目基本信息 1.1.题目描述 给你一个整数数组 nums ,返回其中 按位与三元组 的数目。 按位与三元组 是由下标 (i, j, k) 组成的三元组,并满足下述全部条件: 0 <= i < nums.length 0 <= j < nums.length 0 <= k < nums.leng
阅读全文
posted @ 2025-07-03 10:27 Geek0070
阅读(9)
评论(0)
推荐(0)
Leetcode 3421. 查找进步的学生
摘要: 1.题目基本信息 1.1.题目描述 表:Scores + + + | Column Name | Type | + + + | student_id | int | | subject | varchar | | score | int | | exam_date | varchar | + + +
阅读全文
posted @ 2025-07-03 09:42 Geek0070
阅读(14)
评论(0)
推荐(0)
2025年7月2日
Leetcode 381. O(1) 时间插入、删除和获取随机元素 - 允许重复
摘要: 1.题目基本信息 1.1.题目描述 RandomizedCollection 是一种包含数字集合(可能是重复的)的数据结构。它应该支持插入和删除特定元素,以及删除随机元素。 实现 RandomizedCollection 类: RandomizedCollection()初始化空的 Randomiz
阅读全文
posted @ 2025-07-02 08:13 Geek0070
阅读(15)
评论(0)
推荐(0)
2025年7月1日
Leetcode 262. 行程和用户
摘要: 1.题目基本信息 1.1.题目描述 表:Trips + + + | Column Name | Type | + + + | id | int | | client_id | int | | driver_id | int | | city_id | int | | status | enum |
阅读全文
posted @ 2025-07-01 08:37 Geek0070
阅读(7)
评论(0)
推荐(0)
2025年6月30日
Leetcode 1393. 股票的资本损益
摘要: 1.题目基本信息 1.1.题目描述 Stocks 表: + + + | Column Name | Type | + + + | stock_name | varchar | | operation | enum | | operation_day | int | | price | int | +
阅读全文
posted @ 2025-06-30 08:15 Geek0070
阅读(3)
评论(0)
推荐(0)
2025年6月29日
Leetcode 3482. 分析组织层级
摘要: 1.题目基本信息 1.1.题目描述 表:Employees + + + | Column Name | Type | + + + | employee_id | int | | employee_name | varchar | | manager_id | int | | salary | int
阅读全文
posted @ 2025-06-29 08:35 Geek0070
阅读(26)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
14
下一页
公告