代码太难写
代码太难写
全部文章
分类
归档
标签
去牛客网
登录
/
注册
代码太难写的博客
全部文章
(共196篇)
题解 | #合并表记录#
#include<iostream> #include<unordered_map> #include<map> using namespace std; int main() { map<int,int>nums; i...
2023-10-09
0
243
题解 | #提取不重复的整数#
#include <iostream> #include<bits/stdc++.h> using namespace std; int main() { string str; cin>>str; unordered_set<...
2023-10-09
0
264
题解 | #判断一个链表是否为回文结构#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2023-09-22
0
266
题解 | #牛群排列去重#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2023-09-21
0
330
题解 | #链表中倒数最后k个结点#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2023-09-13
0
322
题解 | #判断是否为回文字符串#
#include <algorithm> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param str string字符串 待判断...
2023-08-26
0
324
题解 | #字符串排序#
#include <iostream> #include<string> #include<algorithm> #include <vector> using namespace std; int main() { vector<st...
2023-08-10
0
281
题解 | #牛群中的第 k 小牛#
#include <vector> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector ...
2023-08-08
0
377
题解 | #牛群中的第 k 小牛#
#include <vector> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector ...
2023-08-08
0
278
题解 | #寻找第K大#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param a int整型vector * @param n int整型 *...
2023-08-08
0
247
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页