求求给个offer我什么都会做的
求求给个offer我什么都会做的
全部文章
分类
归档
标签
去牛客网
登录
/
注册
求求给个offer我什么都会做的的博客
全部文章
(共14篇)
题解 | 分组过滤练习题
SELECT university, AVG(question_cnt) AS avg_question_cnt, AVG(answer_cnt) AS avg_answer_cnt FROM user_profile GROUP BY university HAVING avg...
2025-09-20
0
87
题解 | 最小的K个数
class Solution { public: /** partition function in quick sort, range [lh, rh) returns pivot index after partition */ int ...
2025-03-13
0
79
题解 | 最小的K个数
class Solution { public: /** 在input中[lh, rh)查找前k小的数并返回 */ vector<int> GetLeastNumbers(vector<int> &input, int lh,...
2025-03-13
0
60
题解 | 寻找第K大
class Solution { public: /** find Kth element in 'a' in range [lh, rh) */ int findKth(vector<int> &a, int lh, int rh, in...
2025-03-13
0
58
题解 | 输出二叉树的右视图
#include <cassert> #include <queue> class Solution { TreeNode *build_tree( vector<int> &preOrder, int preOrd...
2025-03-11
0
66
题解 | 二叉搜索树与双向链表
/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } };*/ class ...
2025-03-11
0
59
题解 | 数组中的逆序对
#include <cstdint> class Solution { public: int MergeSort(vector<int> &nums, int len) { if(len <= 1) { retu...
2025-03-11
0
57
题解 | 寻找峰值
#include <limits> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector ...
2025-03-11
0
57
题解 | 链表相加(二)
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { ListNode *...
2025-03-11
0
57
题解 | 链表的奇偶重排
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-03-11
0
54
首页
上一页
1
2
下一页
末页