求捞捞的小邹
求捞捞的小邹
全部文章
分类
归档
标签
去牛客网
登录
/
注册
求捞捞的小邹的博客
全部文章
(共25篇)
题解 | #大整数相乘#
#include <stdio.h> #include <string.h> int my_strlen1(char* str) //自制一个可以得出数组成员个数的函数;便于准确得出“12300042310000”类似的数组排列的成员个数 { int a=0; ...
2024-06-30
0
208
题解 | #牛牛的书#
#include <stdio.h> typedef struct Book{ char name[100]; int p; }Book; int main() { //int a, b; //while (scanf("%d %d"...
2024-06-28
0
196
题解 | #KiKi设计类继承#
#include <stdio.h> typedef struct Shape{ int x; int y; int r; int s; }Shape; void GetArea(Shape data) { if(data.x>0&...
2024-06-28
0
212
题解 | #二叉树中和为某一值的路径(一)#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * ...
2023-12-18
0
209
题解 | #二维数组中的查找#
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param target int整型 * @param array int整型二维数组 * @param arrayRowLen int array数组行数 * @param ar...
2023-12-17
0
264
题解 | #判断是不是平衡二叉树#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ #include "math.h" //返回当前树的深度 #include &...
2023-12-16
0
283
题解 | #跳台阶#
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param number int整型 * @return int整型 */ int jumpFloor(int number ) { // write code here ...
2023-12-15
0
195
题解 | #斐波那契数列#
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param n int整型 * @return int整型 */ int Fibonacci(int n ) { // write code here if(n==1)...
2023-12-15
0
167
题解 | #判断是不是完全二叉树#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ #include "stdlib.h" #include <stdbool...
2023-12-15
0
278
题解 | #循环数比较#
#include <stdio.h> #include <string.h> void repeat_judge(int x,int k,int x1,int k1) { int data=x,data1=x1; int j=0; while(data...
2023-10-30
0
292
首页
上一页
1
2
3
下一页
末页