摘要:
a56爆大奖在线娱乐想的是 自己只是玩玩 为什么这么正经的呢 ?累死了 a56爆大奖在线娱乐要大刷特刷 大跃进!!!! 奋斗百天 a56爆大奖在线娱乐要刷完网课!!! 阅读全文
摘要:
##BST 搜索对应的值 ,因为是bsta56爆大奖在线娱乐dfs不需要回溯,a56爆大奖在线娱乐使用迭代一般都会很舒服!! TreeNode* searchBST(TreeNode* root, int val) { if(!root) return nullptr; while(root){ if(root->val>val) 阅读全文
摘要:
##一些报错 1.error: non-void function 'inorderTraversal' should return a value [-Wreturn-type] 递归写法应该return什么,应该return一个vector? 2.no matching member funct 阅读全文
摘要:
debug也过不了的题,就让他去一边把 往下学 再回头 才会发现曾经那些不会的是这么的轻松就能解决 阅读全文
摘要:
##排序从大到小 priority_queue<int,vector<int>,greater<int> >q; ##堆排序 #include <iostream> #include <algorithm> using namespace std; const int N = 100010; int 阅读全文
摘要:
报错no viable overloaded '='; ``` ListNode f=head,s=head; while(k--) f=f.next;//你试图用一个f结构体接收指针 ``` 报错non-void function does not return a value in all `` 阅读全文
摘要:
##26进制变式 ``` `` 阅读全文
摘要:
阅读全文
摘要:
比map o (logn)查的更快的hash——map o(1),但不一定,且增加一点内存, 但c++没有提供给这个模板, ##关于基本语法 map.insert( , ); map.count(key)//找map是否存过这个东西,有的话返回1,没有返回0,因为map只有一个 map.find(k 阅读全文
摘要:
##反转链表 public: ListNode* reverseList(ListNode* head) { // 1. 递归终止条件 if (head == nullptr || head->next == nullptr) return head;//最后一个是p //注意上面的顺序不能调换!否 阅读全文