橙子爱吃桃子
橙子爱吃桃子
全部文章
题解
C++字符串笔记(1)
归档
标签
去牛客网
登录
/
注册
橙子爱吃桃子的博客
全部文章
/ 题解
(共70篇)
C++/代码:
C++/代码: class Solution { public: vector<vector<int>> Print(TreeNode* pRoot) { vector<vector<int>> res; //定...
2020-05-10
1
728
C++/代码:
C++/代码: class Solution { public: vector<int> PrintFromTopToBottom(TreeNode* root) { vector<int> res; //定一个一维数组,存放各个结点 ...
2020-05-10
10
814
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
774
C++/代码:
C++/代码: class Solution { public: bool isSymmetrical(TreeNode* pRoot) { if (!pRoot) return true; return dfs(pRoot->left,pRoot-&g...
2020-05-08
1
822
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
1160
C++/代码:
C++/代码: class Solution { public: ListNode* Merge(ListNode* pHead1, ListNode* pHead2) { auto dummy = new ListNode(-1); //定义一个虚拟表头 a...
2020-05-08
2
911
C++/代码:
图片:C++/代码: class Solution { public: ListNode* ReverseList(ListNode* pHead) { auto p = pHead; //定义一个新链表 ListNode* pre = NULL; //定义一...
2020-05-07
2
731
首页
上一页
1
2
3
4
5
6
7
下一页
末页