Bob_linux
Bob_linux
全部文章
题解
归档
标签
去牛客网
登录
/
注册
Bob_linux的博客
全部文章
/ 题解
(共10篇)
题解
list_node * relocate(list_node * head) { //////在下面完成代码 if(head == nullptr || head->next == nullptr) return head; list_node* slow = head...
2020-03-01
0
713
题解
list_node * merge_list(list_node * head1, list_node * head2) { //////在下面完成代码 list_node* res= new list_node(); list_node* cur= res; whi...
2020-03-01
0
826
题解
void swap(list_node * a, list_node * b) { int tmp = a->val; a->val = b->val; b->val = tmp; } list_node * selection_sort(list_...
2020-03-01
0
751
题解
list_node * remove_value(list_node * head, int num) { //////在下面完成代码 while(head->val == num) head = head->next; list_node* cur = head...
2020-03-01
0
764
题解
list_node * remove_rep(list_node * head) { //////在下面完成代码 if(head == nullptr || head->next == nullptr) return head; map<int,int> M...
2020-03-01
0
694
题解
vector<list_node*> reverseN(list_node * head1, int K) { list_node* pre = nullptr; list_node* next = nullptr; vector<list_node*>...
2020-02-29
0
731
题解
考查code边界条件 #include <iostream> #include <string> #include <vector> #include <map> #include <algorithm> using namespace ...
2020-02-16
8
1039
题解
#include <iostream> #include <string> #include <vector> using namespace std; vector<vector<int>> vec; vector<int>...
2020-02-16
2
1243
获取最后一个单词长度
#include <string> #include <iostream> using namespace std; class Solution { public: int CountWordLen(string str) { int len = ...
2020-02-12
0
488
C++ 栈的中序遍历
C++ 栈利用 时间复杂度最大O(N)从根节点开始入栈,出栈方向就是中序遍历。 /* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) :...
2020-01-30
0
674