理智的小饼干离上岸不远了
理智的小饼干离上岸不远了
全部文章
分类
归档
标签
去牛客网
登录
/
注册
理智的小饼干离上岸不远了的博客
全部文章
(共8篇)
题解 | #链表的回文结构#
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) {} };*/ class PalindromeList { public: bool ...
2023-10-24
0
204
题解 | #链表分割#
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) {} };*/ #include <asm-generic/errno.h> cla...
2023-10-24
0
211
题解 | #链表中倒数第k个结点#
/** * struct ListNode { * int val; * struct ListNode *next; * }; */ /** * * @param pListHead ListNode类 * @param k int整型 * @return ListNod...
2023-10-24
0
178
题解 | #删除链表中重复的结点#
/** * struct ListNode { * int val; * struct ListNode *next; * }; */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param pHead ListNode类 ...
2023-10-19
1
220
题解 | #链表中倒数第k个结点#
使用快慢指针解决,注意k大于链表情况的处理,防止对空指针解引用操作 /** * struct ListNode { * int val; * struct ListNode *next; * }; */ /** * * @param pListHead ListNode类 * ...
2023-10-05
0
287
题解 | #牛牛的digit#
#include <stdio.h> #include <math.h> int f(int x,int i) { int cnt=0; if(i==1) return x%10; cnt++; return f(x/10,i-1)*...
2023-09-03
0
179
题解 | #简写单词#
#include <stdio.h> int main() { char arr[6000]={0}; scanf("%[^\n]",arr); char *sta=arr; int cnt=0; char arr2[6000...
2023-08-16
2
351
题解 | #添加逗号#
#define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> #include <string.h> //1234567 //1,234,567 //765,432,1 void reverse(char* sta, char* e...
2023-08-16
1
275