mhgong
mhgong
全部文章
分类
题解(2)
归档
标签
去牛客网
登录
/
注册
mhgong的博客
全部文章
(共3篇)
题解 | #计算数组的小和#
在归并排序模版上增加一句class Solution { private: using ll = long long; ll mergeSort(vector<int>& nums, vector<int>& tmp, int low, int...
2022-12-01
0
354
题解 | #排序奇升偶降链表#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
C++
链表
2022-03-31
0
294
题解 | #最长上升子序列(三)#
先贴上代码,有时间再来注解~ class Solution { public: /** * retrun the longest increasing subsequence * @param arr int整型vector the array * @retur...
C++
二分查找
2022-03-19
0
329