代码太难写
代码太难写
全部文章
分类
归档
标签
去牛客网
登录
/
注册
代码太难写的博客
全部文章
(共196篇)
题解 | #斐波那契数列#
/** * * @param n int整型 * @return int整型 */ int Fibonacci(int n ) { // write code here int p = 0,q = 0,r = 1; for(int i = 2;i<=n;i+...
2023-04-15
0
212
题解 | #判断链表中是否有环#
#include <stdbool.h> /** * struct ListNode { * int val; * struct ListNode *next; * }; */ /** * * @param head ListNode类 * @return bool...
2023-04-15
0
248
题解 | #删除链表的节点#
/** * struct ListNode { * int val; * struct ListNode *next; * }; */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param head ListNode类 ...
2023-04-12
0
205
题解 | #删除链表的节点#
/** * struct ListNode { * int val; * struct ListNode *next; * }; */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param head ListNode类 ...
2023-04-12
1
232
题解 | #移动 0#
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型一维数组 * @param numsLen int nums数组长度 * @return int整型一维数组 * @return int* retur...
2023-04-10
0
271
题解 | #只出现一次的数字#
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型一维数组 * @param numsLen int nums数组长度 * @return int整型 */ int singleNumber(int*...
2023-04-10
0
257
题解 | #【模板】链表#
#include<stdio.h> #include<stdlib.h> #include<string.h> typedef struct no{ int data; struct no *next; }ListNode; ListNode*r...
2023-03-31
0
315
题解 | #【模板】链表#
#include <stdio.h> #include<stdlib.h> #include<string.h> typedef struct d{ int data; struct d*next; }ListNode; ListNode*Bu...
2023-03-26
3
264
题解 | #反转链表#
/** * struct ListNode { * int val; * struct ListNode *next; * }; */ /** * * @param pHead ListNode类 * @return ListNode类 */ struct ListNode*...
2023-03-26
0
267
题解 | #数组中重复的数字#
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param numbers int整型一维数组 * @param numbersLen int numbers数组长度 * @return int整型 */ int duplicat...
2023-03-25
0
273
首页
上一页
4
5
6
7
8
9
10
11
12
13
下一页
末页