ETO-ccc
ETO-ccc
全部文章
分类
归档
标签
去牛客网
登录
/
注册
ETO-ccc的博客
全部文章
(共39篇)
题解 | #二叉树的中序遍历#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {...
2023-03-18
2
335
题解 | #二叉树的前序遍历#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {...
2023-03-18
2
290
题解 | #旋转数组的最小数字#
#include <algorithm> class Solution { public: int minNumberInRotateArray(vector<int> rotateArray) { //使用左闭右闭区间 int L=0...
2023-03-17
2
281
题解 | #数组中的逆序对#
#include <algorithm> #include <random> #include <vector> class Solution { public: long int countMerge(vector<int>& data,ve...
2023-03-17
2
324
题解 | #寻找峰值#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector * @return int整型 ...
2023-03-16
2
385
题解 | #二维数组中的查找#
class Solution { public: bool Find(int target, vector<vector<int> > array) { int rowMax=array.size()-1; if(rowMax==-1)...
2023-03-15
2
292
题解 | #二分查找-I#
#include <random> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector ...
2023-03-15
2
283
题解 | #链表相加(二)#
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} ...
2023-03-14
2
277
题解 | #删除链表的倒数第n个节点#
/** * struct ListNode { * int val; * struct ListNode *next; * }; */ class Solution { public: /** * * @param head ListNode类 ...
2023-03-13
2
301
题解 | #链表中倒数最后k个结点#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2023-03-13
2
309
首页
上一页
1
2
3
4
下一页
末页