XYZ-qiyh
XYZ-qiyh
全部文章
题解
未归档(1)
求职记录(2)
归档
标签
去牛客网
登录
/
注册
XYZ-qiyh的博客
全部文章
/ 题解
(共4篇)
题解 | #大数加法#
string solve(string s, string t) { // write code here // 字符串转为int 存入vector中,记得char变int是不要忘记减去'0' vector<int> S; vector<int>...
2021-07-31
0
0
题解 | #最长无重复子数组#
int maxLength(vector<int>& arr) { // write code here int i=0; int length = 0; unordered_set<int> sub_arr; //定义一个unorde...
2021-05-30
2
0
题解 | #排序#
vector<int> MySort(vector<int>& arr) { // write code here // C++快速排序,先用sort mark一下 // 貌似 c++ <algorithm>中的sort用的就是快速...
2021-05-30
0
0
题解 | #反转链表#
ListNode* ReverseList(ListNode* pHead) { ListNode* cur = pHead; ListNode* pre = nullptr; //思路: 将当前节点cur的next由原来的next赋值为pre // pre = c...
2021-05-30
0
0