打算科研转技术的我
打算科研转技术的我
全部文章
分类
归档
标签
去牛客网
登录
/
注册
打算科研转技术的我的博客
全部文章
(共24篇)
题解 | #滑动窗口的最大值#
/** * * @param num int整型一维数组 * @param numLen int num数组长度 * @param size int整型 * @return(756076230) int整型一维数组 * @return(756076230) int* returnS...
2023-01-01
0
333
题解 | #两个链表的第一个公共结点# 榜一大哥的解法好强
/** * struct ListNode { * int val; * struct ListNode *next; * }; */ /** * * @param pHead1 ListNode类 * @param pHead2 ListNode类 * @return(7...
2023-01-01
0
259
题解 | #分糖果问题# 主要是去理解为什么要反向遍历
/** * pick candy * @param arr int整型一维数组 the array * @param arrLen int arr数组长度 * @return(756076230) int整型 */ int candy(int* arr, int arrLen ) { ...
2023-01-01
0
259
题解 | #反转链表#
/** * struct ListNode { * int val; * struct ListNode *next; * }; */ /** * * @param pHead ListNode类 * @return(756076230) ListNode类 */ //方法...
2022-12-31
0
206
题解 | #24点游戏算法# 说实话,我仍然是懵的
#include <stdio.h> static int v[4]={0}; int dfs(int *a,double s) { if(s==24) { return 1; } else...
2022-12-23
0
267
题解 | #字符串排序# wotcl
#include <stdio.h> #include <string.h> #include <ctype.h> int main() { int i,count=0; char str[2000],str_n[2000],ch1,ch2,cht...
2022-12-15
0
242
题解 | #字符串合并处理# 我太菜了,做了好久
#include <stdio.h> #include <string.h> #include <ctype.h> int reverse(int num) { int i,count=0,arr[4]={0},new_n=0;//十六进制4位 w...
2022-12-14
0
327
题解 | #从单向链表中删除指定值的节点#
自己写老是发生段错误,不知道为啥。参考了大佬的代码写了一个就没问题,想不明白。#include <stdio.h>#include<stdlib.h>struct node{ int value;&n...
2022-12-12
0
247
题解 | #DNA序列#
#include <stdio.h>#include <string.h>int main() { int i,j,n,begin=0;//由于未对begin进行赋值,在n==st...
2022-12-12
0
237
题解 | #矩阵乘法# 以为很简单,还是做了大半个小时。。
#include <stdio.h>int main() { int x,y,z; scanf("%d",&x);  ...
2022-12-11
0
260
首页
上一页
1
2
3
下一页
末页