wrdoct
wrdoct
全部文章
分类
复习(44)
面经(1)
题解(88)
归档
标签
去牛客网
登录
/
注册
wrdoct的博客
TA的专栏
127篇文章
14人订阅
华为题库题解
103篇文章
467人学习
互联网学习
24篇文章
9430人学习
全部文章
(共151篇)
题解 | #字符逆序#
来自专栏
#include <bits/stdc++.h> using namespace std; void process(string str, string& res){ reverse(str.begin(), str.end()); res = str; }...
C++
2022-06-06
0
269
题解 | #简单错误记录#
#include <bits/stdc++.h> using namespace std; //只用输出最后出现的八条错误记录——考虑队列,超过八条时弹出 (双端队列,从后端进,从前端出) //对相同的错误记录只记录一条,但是错误计数增加——考虑哈希表,键为错误记录,值为错误计数 ...
C++
2022-06-05
0
235
题解 | #简单错误记录#
来自专栏
#include <bits/stdc++.h> using namespace std; //只用输出最后出现的八条错误记录——考虑队列,超过八条时弹出 (双端队列,从后端进,从前端出) //对相同的错误记录只记录一条,但是错误计数增加——考虑哈希表,键为错误记录,值为错误计数 ...
C++
2022-06-05
0
308
题解 | #放苹果#
#include <bits/stdc++.h> using namespace std; int process(int m, int n){ if(m < 0 || n < 0){ return 0; } else if(m =...
C++
2022-06-04
0
285
题解 | #放苹果#
来自专栏
#include <bits/stdc++.h> using namespace std; int process(int m, int n){ if(m < 0 || n < 0){ return 0; } else if(m =...
C++
2022-06-04
0
272
题解 | #字符串加密#
#include <bits/stdc++.h> using namespace std; //encoder void encoder(string key, string str, string& res){ //如果单词中包含有重复的字母,只保留第1个,将所得结...
C++
2022-06-04
0
306
题解 | #字符串加密#
来自专栏
#include <bits/stdc++.h> using namespace std; //encoder void encoder(string key, string str, string& res){ //如果单词中包含有重复的字母,只保留第1个,将所得结...
C++
2022-06-04
0
330
题解 | #输出单向链表中倒数第k个结点#
#include <bits/stdc++.h> using namespace std; struct ListNode { int m_nKey; ListNode* m_pNext; ListNode() : m_nKey(0), m_pNext(nul...
C++
2022-06-04
0
301
题解 | #输出单向链表中倒数第k个结点#
来自专栏
#include <bits/stdc++.h> using namespace std; struct ListNode { int m_nKey; ListNode* m_pNext; ListNode() : m_nKey(0), m_pNext(nul...
C++
2022-06-04
0
233
题解 | #最大数#
class Solution { public: /** * 最大数 * @param nums int整型vector * @return string字符串 */ static bool cmp(const string& a, ...
C++
2022-06-01
0
281
首页
上一页
4
5
6
7
8
9
10
11
12
13
下一页
末页