牛客768685351号
牛客768685351号
全部文章
题解
归档
标签
去牛客网
登录
/
注册
牛客768685351号的博客
全部文章
/ 题解
(共160篇)
题解 | #缺失的第一个正整数#
参考:https://leetcode-cn.com/problems/first-missing-positive/solution/que-shi-de-di-yi-ge-zheng-shu-by-leetcode-solution/ class Solution { public: /...
C++
2022-02-25
0
286
题解 | #矩阵元素查找#
class Solution { public: vector<int> findElement(vector<vector<int> > mat, int n, int m, int x) { // write code here ...
C++
2022-02-25
0
263
题解 | #有重复项数字的全排列#
class Solution { private: vector<vector<int>> res; vector<int> path; public: vector<vector<int> > permuteUni...
C++
2022-02-25
0
256
题解 | #删除有序链表中重复的元素-I#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x): val(x), next(nullptr) {}; * }; */ class Solution { public: ...
C++
2022-02-25
0
239
题解 | #判断一棵二叉树是否为搜索二叉树和完全二叉树#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ class Solution { private: vector<int> i...
C++
2022-02-25
0
308
题解 | #在两个长度相等的排序数组中找到上中位数#
class Solution { public: /** * find median in two sorted array * @param arr1 int整型vector the array1 * @param arr2 int整型vector the a...
C++
2022-02-25
0
312
题解 | #删除有序链表中重复的元素-II#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x): val(x), next(nullptr) {}; * }; */ class Solution { public: ...
C++
2022-02-24
0
221
题解 | #最长公共子序列(二)#
class Solution { public: /** * longest common subsequence * @param s1 string字符串 the string * @param s2 string字符串 the string * ...
C++
2022-02-23
0
322
题解 | #求路径#
class Solution { public: /** * * @param m int整型 * @param n int整型 * @return int整型 */ int uniquePaths(int m, int n) ...
C++
2022-02-23
0
285
题解 | #编辑距离(二)#
class Solution { public: /** * min edit cost * @param str1 string字符串 the string * @param str2 string字符串 the string * @param ic...
C++
2022-02-23
0
280
首页
上一页
6
7
8
9
10
11
12
13
14
15
下一页
末页