珊珊呀!
珊珊呀!
全部文章
题解
归档
标签
去牛客网
登录
/
注册
珊珊呀!的博客
全部文章
/ 题解
(共17篇)
题解 | #比较版本号#
public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 比较版本号 * @param version1 string字符串 * @param version2 string字符串 ...
C++
2022-03-06
0
289
题解 | #合并两个排序的链表#
public: // 算暴力的一种解法吧,找到第一行,第一列的小于target的一个边界,然后循环求取有无等于target的值。 // bool Find(int target, vector<vector<int> > array) { // boo...
C++
二分查找
2022-03-05
0
279
题解 | #判断链表中是否有环#
* Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; ...
C++
链表
2022-03-04
0
322
题解 | #链表内指定区间反转#
* struct ListNode { * int val; * struct ListNode *next; * }; */ class Solution { public: /** * * @param head ListNode类 * @pa...
C++
链表
2022-03-04
0
337
题解 | #删除链表中重复的结点#
struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } }; */ class Solution { public: ...
C++
链表
2022-02-25
0
256
题解 | #链表中环的入口结点#
struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } }; class Solution { public: Li...
C++
链表
2022-02-24
1
290
题解 | #两个链表的第一个公共结点#
struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } }; class Solution { public: ListNode* FindFirstC...
C++
链表
2022-02-23
0
196
首页
上一页
1
2
下一页
末页