简单就好201710200501870
简单就好201710200501870
全部文章
分类
题解(20)
归档
标签
去牛客网
登录
/
注册
简单就好201710200501870的博客
全部文章
(共52篇)
题解 | #判断是否为回文字符串#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param str string字符串 待判断的字符串 * @return bool布尔...
2024-10-27
0
56
题解 | #判断字符是否唯一#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param str string字符串 * @return bool布尔型 *...
2024-10-26
0
46
题解 | #压缩字符串(一)#
#include <string> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param param string字符串 ...
2024-10-25
0
46
题解 | #替换空格#
//坑:考虑空格,考虑连续空格,什么鬼题目,坑人。 class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param s string字符串 ...
2024-10-19
0
75
题解 | #第一个只出现一次的字符#
第一种: class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param str string字符串 * @return int整型 ...
2024-10-19
0
64
题解 | #二叉树的最大深度#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; ...
C
二叉树
2021-12-26
0
376
题解 | #两个链表生成相加链表#
/** * struct ListNode { * int val; * struct ListNode *next; * }; * * C语言声明...
C
C++
链表
2021-12-25
0
411
题解 | #判断一个链表是否为回文结构#
/** * struct ListNode { * int val; * struct ListNode *next; * }; * * C语言声明...
C
链表
2021-12-07
0
465
题解 | #单链表的排序#
/** * struct ListNode { * int val; * struct ListNode *next; * }; * * C语言声明...
C
链表
2021-12-05
0
392
题解 | #反转字符串#
/** * struct ListNode { * int val; * struct ListNode *next; * }; * * C语言声明...
C
链表
2021-12-05
0
360
首页
上一页
1
2
3
4
5
6
下一页
末页