小益提不起劲
小益提不起劲
全部文章
题解
归档
标签
去牛客网
登录
/
注册
小益提不起劲的博客
全部文章
/ 题解
(共6篇)
题解 | #二叉树的下一个结点#
class Solution { public: TreeLinkNode* GetNext(TreeLinkNode* pNode) { if (pNode->right == nullptr && pNode->next == nullptr)...
C++
2022-03-21
0
349
dp
class Solution { public: int FindGreatestSumOfSubArray(vector<int> array) { int maxs=INT_MIN;//maxs记录最大值 for(vector<int&g...
2020-12-08
1
579
c++栈
class Solution { public: /** * * @param s string字符串 * @return bool布尔型 */ bool isValid(string s) { // write code ...
字符串
栈
2020-10-07
0
618
二维数组
直接每一行判断 找到比target大的数时用pos记录前一个位置后面每一行只要判断到pos位置就可以了pos为-1时没有符合的就不用再继续判断了 class Solution { public: bool Find(int target, vector<vector<int>...
二维数组
2020-10-06
0
539
链表
/** * struct ListNode { * int val; * struct ListNode *next; * }; */ class Solution { public: /** * * @param head ListNode类 ...
链表
2020-10-05
0
603
链表
在一个链表上操作 /** * struct ListNode { * int val; * struct ListNode *next; * }; */ class Solution { public: /** * * @param l1 Lis...
2020-10-02
0
574