牛客767752055号
牛客767752055号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客767752055号的博客
全部文章
(共46篇)
题解 | #求平方根#
class Solution { public: /** * * @param x int整型 * @return int整型 */ int mysqrt(int x) { if(x==1||x==0) { ...
2023-05-18
0
223
题解 | #二叉树根节点到叶子节点的所有路径和#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ class Solution { public: /** * * @...
2023-03-17
0
267
题解 | #大数乘法#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * @param s string字符串 第一个整数 * @param t string字符串 第二个整数 ...
2023-03-13
0
230
题解 | #链表中环的入口结点#
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } }; */ class Solution { public: ...
2023-03-09
0
212
题解 | #重排链表#
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} ...
2023-03-08
0
228
题解 | #字符串加密#
#include <iostream> #include <set> using namespace std; string f(string key){ set<int> dc; string zmk; for(int i=0;i<...
2023-01-12
0
251
首页
上一页
1
2
3
4
5
下一页
末页