勤劳的小蜗牛许愿简历通过
勤劳的小蜗牛许愿简历通过
全部文章
分类
归档
标签
去牛客网
登录
/
注册
勤劳的小蜗牛许愿简历通过的博客
全部文章
(共83篇)
题解 | 机器人的运动范围
#include <vector> class Solution { public: int dir[4][2] = { {-1, 0}, {1, 0}, {0, -1}, {0, 1} }; int res = 0; int cal(int n) { ...
2025-02-27
0
30
题解 | 二叉树的下一个结点
/* struct TreeLinkNode { int val; struct TreeLinkNode *left; struct TreeLinkNode *right; struct TreeLinkNode *next; TreeLinkNode(i...
2025-02-27
0
28
题解 | 重建二叉树
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {...
2025-02-27
0
30
题解 | 数组中重复的数字
#include <fstream> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param numbers int整型vector...
2025-02-27
0
33
题解 | 数字序列中某一位的数字
#include <string> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param n int整型 * @ret...
2025-02-26
0
37
题解 | 字符串的排列
#include <vector> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param str string字符串 ...
2025-02-26
0
29
题解 | #游游的字母翻倍#
从后往前insert 防止字符串变长 出错 #include <cstring> #include <iostream> #include <vector> using namespace std; int main() { int n, m; ...
2024-11-30
0
40
题解 | #小红的字符生成#
用位运算 把输入数字所有的1找到 然后判断是2的几次方 #include <iostream> using namespace std; int main() { int n; cin >> n; while(n){ int t = ...
2024-11-26
0
41
题解 | #小红的排列构造#
偶数绝对不是质数 所以i + ai => i + i123数列中 必须是321 因为123都是质数 #include <iostream> using namespace std; int main() { int n; cin >> n; i...
2024-11-26
0
47
题解 | #小红的字符串构造#
#include <iostream> #include <map> #include<vector> #include <unordered_map> using namespace std; int main(){ string s; ...
2024-11-26
0
36
首页
上一页
1
2
3
4
5
6
7
8
9
下一页
末页