爱冲浪的懒羊羊
爱冲浪的懒羊羊
全部文章
分类
归档
标签
去牛客网
登录
/
注册
爱冲浪的懒羊羊的博客
全部文章
(共18篇)
题解 | #旋转数组的最小数字#
class Solution { public: int minNumberInRotateArray(vector<int> rotateArray) { int min=rotateArray[0]; for(int i=0;i<rota...
2023-03-07
0
280
题解 | #旋转数组的最小数字#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param rotateArray int整型一维数组 # @return(756076230) int整型 # class Solution: def minNumberInRotateAr...
2023-03-07
0
283
题解 | #二分查找-I#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector * @param target int整型...
2023-03-04
0
336
题解 | #删除有序链表中重复的元素-I#
/** * struct ListNode { * int val; * struct ListNode *next; * }; */ class Solution { public: /** * * @param head ListNode类 ...
2023-03-02
0
454
题解 | #链表中倒数最后k个结点#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2023-03-01
0
314
题解 | #判断链表中是否有环#
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} ...
2023-03-01
0
329
题解 | #合并两个排序的链表#
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/ #include <list> class Solution { publi...
2023-02-28
0
267
题解 | #反转链表#
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/ #include <cstddef> class Solution { pu...
2023-02-28
0
287
首页
上一页
1
2
下一页
末页