万千少男的梦
万千少男的梦
全部文章
分类
归档
标签
去牛客网
登录
/
注册
万千少男的梦的博客
全部文章
(共91篇)
题解 | 查找最晚入职员工的所有信息
select * from employees order by hire_date desc limit 1;
2025-03-24
0
20
题解 | 找出所有员工当前薪水salary情况
select distinct salary from salaries order by salary desc;
2025-03-24
0
21
题解 | 批量插入数据
insert into actor values(1,'PENELOPE','GUINESS','2006-02-15 12:34:33'),(2,'NICK','WAHLBERG','2006-02-15 12:34:33');
2025-03-24
0
15
题解 | #腐烂的苹果#
class Solution { int dx[4] = {1, -1, 0, 0}; int dy[4] = {0, 0, 1, -1}; int row, col; public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回...
2024-07-24
1
176
题解 | #【模板】二维前缀和#
#include<iostream> using namespace std; #include<vector> //1.预处理出来一个前缀和矩阵dp //dp[i][j]表示从(1,1)位置到(i,j)位置,这段区间中所有元素的和 int main() { int n...
2024-06-11
0
253
题解 | #栈的压入、弹出序列#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param pushV int整型vector * @param popV int整型v...
2024-05-29
1
195
题解 | #合并两个排序的链表#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /...
2024-05-26
1
184
题解 | #四数之和#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector * @param target int整型...
2024-05-23
1
210
题解 | #移动 0#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector * @return int整型vector...
2024-05-23
1
184
题解 | #删除链表的节点#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2024-05-23
1
175
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页