牛客497079527号
牛客497079527号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客497079527号的博客
全部文章
(共93篇)
题解 | #二叉树的前序遍历#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * ...
2024-11-01
0
34
题解 | #数列的和#
#include <stdio.h> #include<math.h> int main() { int m = 0; int n = 0; while (~scanf("%d %d", &n, &m)) { ...
2024-09-07
0
86
题解 | #字符个数统计#
#include <stdio.h> int main() { char ch=0; char ch1[128]={0}; int count=0; while(scanf("%c",&ch)){ if(ch=...
2024-09-04
0
84
题解 | #判断链表中是否有环#
#include <stdbool.h> /** * struct ListNode { * int val; * struct ListNode *next; * }; */ /** * * @param head ListNode类 * @return bool...
2024-05-30
0
162
题解 | #合并两个排序的链表#
/** * struct ListNode { * int val; * struct ListNode *next; * }; */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param pHead1 ListNode...
2024-05-30
0
163
题解 | #反转链表#
/** * struct ListNode { * int val; * struct ListNode *next; * }; */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param head ListNode类 ...
2024-05-30
0
161
题解 | #牛牛的平面向量#
#include <stdio.h> #include<stdlib.h> struct Vd { int x; int y; }; int main() { int n = 0; scanf("%d", &n)...
2024-05-30
0
158
题解 | #牛牛的书#
#include <stdio.h> #include<stdlib.h> typedef struct book { char name[20]; int price; } book; int sort(const void* p1, const voi...
2024-05-30
0
192
题解 | #牛牛的双链表求和#
#include <stdio.h> #include<stdlib.h> typedef struct SList { int date; struct SList* next; } SList; SList* CreatNode(int x) { ...
2024-05-30
0
155
题解 | #牛牛的单链表求和#
#include <stdio.h> #include<stdlib.h> typedef struct SList { int date; struct SList* next; } SList; SList* CreatNode(int x) { ...
2024-05-30
0
173
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页