牛客768685351号
牛客768685351号
全部文章
分类
题解(160)
归档
标签
去牛客网
登录
/
注册
牛客768685351号的博客
全部文章
(共163篇)
题解 | #最长公共子序列(二)#
class Solution { public: /** * longest common subsequence * @param s1 string字符串 the string * @param s2 string字符串 the string * ...
C++
2022-02-23
0
325
题解 | #求路径#
class Solution { public: /** * * @param m int整型 * @param n int整型 * @return int整型 */ int uniquePaths(int m, int n) ...
C++
2022-02-23
0
287
题解 | #编辑距离(二)#
class Solution { public: /** * min edit cost * @param str1 string字符串 the string * @param str2 string字符串 the string * @param ic...
C++
2022-02-23
0
283
题解 | #字符串出现次数的TopK问题#
struct cmp{ bool operator() (const pair<string, int>& a, const pair<string, int>& b){ return a.second > b.second ||...
C++
2022-02-23
0
325
题解 | #字符串的排列#
class Solution { private: vector<string> res; string cur = ""; public: vector<string> Permutation(string str) { if(str...
C++
2022-02-23
0
281
题解 | #合并k个已排序的链表#
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} ...
C++
2022-02-23
0
261
题解 | #接雨水问题#
class Solution { public: /** * max water * @param arr int整型vector the array * @return long长整型 */ long long maxWater(vector...
C++
2022-02-23
0
373
题解 | #岛屿数量#
class Solution { public: /** * 判断岛屿数量 * @param grid char字符型vector<vector<>> * @return int整型 */ int solve(vect...
C++
2022-02-23
0
299
题解 | #数组中出现次数超过一半的数字#
class Solution { public: int MoreThanHalfNum_Solution(vector<int> numbers) { int num = -1; int cnt = 0; for (int i=0...
C++
2022-02-23
0
267
题解 | #矩阵的最小路径和#
class Solution { public: /** * * @param matrix int整型vector<vector<>> the matrix * @return int整型 */ int minPat...
C++
2022-02-23
0
263
首页
上一页
7
8
9
10
11
12
13
14
15
16
下一页
末页