蚂蚁go
蚂蚁go
全部文章
分类
归档
标签
去牛客网
登录
/
注册
蚂蚁go的博客
全部文章
(共77篇)
题解 | #判断链表中是否有环#
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} ...
2024-06-29
0
132
题解 | #合并k个已排序的链表#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <cstdlib> class ...
2024-06-29
0
133
题解 | #合并两个排序的链表#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2024-06-29
0
134
题解 | #链表内指定区间反转#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2024-06-29
0
116
题解 | #反转链表#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2024-06-29
0
130
题解 | #牛牛的链表添加节点#
#include <stdio.h> #include <stdlib.h> typedef struct node { int num; struct node* next; } Node; Node* createlist(int num) { ...
2024-06-14
0
136
题解 | #牛牛的链表删除#
#include <stdio.h> #include <stdlib.h> typedef struct node { int num; struct node* next; } Node; Node* create_list(int num) { ...
2024-06-14
0
104
题解 | #牛牛的双链表求和#
#include <stdio.h> #include <stdlib.h> typedef struct node { int num; struct node* next; } Node; Node* create_list(int num) { ...
2024-06-14
0
162
题解 | #牛牛的单链表求和#
#include <stdio.h> #include <stdlib.h> typedef struct node { int num; struct node* next; } Node; Node* createlist(int num) { ...
2024-06-14
0
128
题解 | #牛牛的链表交换#
#include <math.h> #include<stdio.h> #include <stdlib.h> typedef struct node { int num; struct node* next; } Node ; Node* c...
2024-06-14
0
155
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页