想玩飞盘的小龙虾面试中
想玩飞盘的小龙虾面试中
全部文章
分类
题解(3)
归档
标签
去牛客网
登录
/
注册
想玩飞盘的小龙虾面试中的博客
全部文章
(共31篇)
题解 | #岛屿数量#
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 判断岛屿数量 * @param grid char字符型二维数组 * @param gridRowLen int grid数组行数 * @param gridColLen int* grid数...
2023-11-16
0
269
题解 | #【模板】循环队列#
#include <stdio.h> #include<string.h> #include <stdlib.h> int arr[100000],sum=0,first=0,mx; void push(int x) { if(sum+1-first&g...
2023-11-15
0
273
题解 | #【模板】队列#
#include <stdio.h> #include<string.h> #include <stdlib.h> int arr[100000],sum=0,first=0; void push(int x) { arr[sum++]=x; } voi...
2023-11-15
0
325
题解 | #跳台阶#
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param number int整型 * @return int整型 */ int jumpFloor(int number ) { // write code here ...
2023-11-14
0
230
题解 | #快速乘#
#include <stdio.h> int main() { int q; scanf("%d",&q); while(q--) { long long a,b,p; scanf("...
2023-11-13
0
228
题解 | #快速幂#
#include <stdio.h> int main() { int q; scanf("%d",&q); while(q--) { long long a,b,p; scanf("...
2023-11-13
2
222
题解 | #相差不超过k的最多数#
#include <stdio.h> #include<stdlib.h> void merge(int *arr,int l,int m,int r) { int templ=l,tempr=m+1,sum=0; int *temp=(int *)mall...
2023-11-12
0
223
题解 | #活动安排#
#include <stdio.h> #include<stdlib.h> typedef struct time { int x,y; }time; time arr[200000];//定义结构体数组,关联活动的开始和结束时间 void merge(time ...
2023-11-12
1
306
题解 | #排序#
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 将给定数组排序 * @param arr int整型一维数组 待排序的数组 * @param arrLen int arr数组长度 * @return int整型一维数组 * @return ...
2023-11-11
1
262
题解 | #牛牛的链表添加节点#
#include <stdio.h> #include <stdlib.h> typedef struct node { int data; struct node* next; }node; node* create(int data) { no...
2023-11-09
1
281
首页
上一页
1
2
3
4
下一页
末页