橙子爱吃桃子
橙子爱吃桃子
全部文章
分类
C++字符串笔记(1)
题解(70)
归档
标签
去牛客网
登录
/
注册
橙子爱吃桃子的博客
TA的专栏
1篇文章
0人订阅
C++相关总结
1篇文章
808人学习
全部文章
(共71篇)
C++/代码:
C++/代码: class Solution { public: vector<vector<int> > Print(TreeNode* pRoot) { vector<vector<int>> res; //定义二维数组 ...
2020-05-10
1
849
C++/代码:
C++/代码: class Solution { public: vector<vector<int>> Print(TreeNode* pRoot) { vector<vector<int>> res; //定...
2020-05-10
1
727
C++/代码:
C++/代码: class Solution { public: vector<int> PrintFromTopToBottom(TreeNode* root) { vector<int> res; //定一个一维数组,存放各个结点 ...
2020-05-10
10
815
C++/代码:
C++/代码: class Solution { public: bool IsPopOrder(vector<int> pushV,vector<int> popV) { if (pushV.size() != popV.size()) return...
2020-05-10
6
0
C++/代码:
C++/代码: class Solution { public: stack<int> stk,min_stk;//定义两个栈 void push(int value) { stk.push(value); if(min_stk.empty...
2020-05-10
0
644
C++/代码:
C++/代码: class Solution { public: vector<int> printMatrix(vector<vector<int> > matrix) { vector<int> res; //定义一维数组 ...
2020-05-09
2
760
C++/代码:
C++/代码: class Solution { public: bool isSymmetrical(TreeNode* pRoot) { if (!pRoot) return true; return dfs(pRoot->left,pRoot-&g...
2020-05-08
1
811
C++/代码:
C++/代码: class Solution { public: void Mirror(TreeNode *pRoot) { if (!pRoot) return; //为空则结束,因为是void函数,则无返回值,结束则为空 swap(pRoot->l...
2020-05-08
1
522
C++/代码:
C++/代码: class Solution { public: bool HasSubtree(TreeNode* pRoot1, TreeNode* pRoot2) { if (!pRoot1 || !pRoot2) return false;//先判断空树返回false...
2020-05-08
15
1142
C++/代码:
C++/代码: class Solution { public: ListNode* Merge(ListNode* pHead1, ListNode* pHead2) { auto dummy = new ListNode(-1); //定义一个虚拟表头 a...
2020-05-08
2
911
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页