想玩飞盘的斑马在理财
想玩飞盘的斑马在理财
全部文章
分类
归档
标签
去牛客网
登录
/
注册
想玩飞盘的斑马在理财的博客
全部文章
(共8篇)
题解 | #【模板】哈夫曼编码#
用C语言写,超时了,通过用例5/10。代码: #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAXINT 32676 // 哈夫曼树每一个结点的类型 typedef str...
2024-04-26
1
238
题解 | #迷宫问题 C语言#
#include <stdio.h> #include <stdlib.h> #include <string.h> // 搜寻函数,用于对矩阵进行处理 void search(int** arr, int x, int y, int m, int n, cha...
2024-04-25
0
193
题解 | #非递减序列#
// 遍历整数序列,看当前数字是否小于等于它后面的那个数 #include <stdio.h> int main() { int arr[10000] = { 0 }; int count = 0; while (scanf("%d", &a...
2024-04-12
0
257
题解 | #字符串中找出连续最长的数字串#
#include <stdio.h> #include <string.h> #include <ctype.h> int main() { char str[256] = {0}; gets(str); // 接收输入 int max ...
2024-04-11
0
361
题解 | #输入整型数组和排序标识,对元素按升序或降序排序#
// main只负责处理输入和输出, // 按升序排序和按降序排序各自单独写一个函数,放在main的外面 #include <stdio.h> // 按升序排序 void BubbleSortAscend(int* arr, int len) { for (int i = 1; ...
2024-04-10
0
220
题解 | #链表相加(二)#
/** * struct ListNode { * int val; * struct ListNode *next; * }; */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param head1 ListNode类...
2024-03-22
0
181
题解 | #百钱买百鸡问题#
2024-03-16
0
200
题解 | #百钱买百鸡问题#
2024-03-16
0
165