老哥们点评点评 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef struct s{ int id; int grade; stru…… 题解列表 2022年08月27日 0 点赞 0 评论 579 浏览 评分:9.9
尾插法创建链表、选择排序 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <malloc.h> typedef struct student { int id; int …… 题解列表 2022年08月28日 0 点赞 0 评论 690 浏览 评分:9.9
合并链表之【直接在head1的后面接上head2】 摘要:主要思路如下: 1、创建:分别创建好两个已知长度的链表并输入相关的值(从head->next开始存值) 2、合并:直接将第二个链表接到第一个链表的尾部,将第一个链表的尾部"p"指向第二个链表的第一…… 题解列表 2022年09月17日 0 点赞 0 评论 546 浏览 评分:9.9
链表合并之我用了stl容器偷懒解法 摘要:#include#include#include#include#includeusing namespace std; int main() { list<pair int n, m; …… 题解列表 2022年10月02日 0 点赞 0 评论 649 浏览 评分:9.9
Monkey————链表合并 //用了冒泡排序法和选择排序法,提交发现选择排序法通过快一点,具体原因母鸡//遗憾的是两个排序法我嫌麻烦没分装成函数,见谅#include#includetypedefstruct_data{intschoolnamber;intgrades;}data;typedefstructlist{datas 题解列表 2022年10月29日 0 点赞 0 评论 810 浏览 评分:9.9
废话不多说,看代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,m,i,j; scanf("%d%d",&n,&m); int a[n+m],b…… 题解列表 2022年11月22日 0 点赞 0 评论 558 浏览 评分:9.9
编写题解 1052: [编程入门]链表合并 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef struct Node{ int n; int g…… 题解列表 2022年12月07日 0 点赞 0 评论 632 浏览 评分:9.9
[编程入门]链表合并 60行不到解决战斗 #**[编程入门]链表合并**#includetypedefstructst{intid;intscore;structst*pnext;}st;st*cre(intm,intn){st*head=(st*)malloc(sizeof(st));if(!head)returnNULL;head->pn 题解列表 2023年01月13日 0 点赞 0 评论 451 浏览 评分:9.9
链表合并(C手写链表) 摘要:解题思路:注意事项:参考代码:#include<stdlib.h> #include<stdio.h> typedef struct student { int num; int m…… 题解列表 2023年02月11日 0 点赞 0 评论 492 浏览 评分:9.9
LikeWater - 1052: [编程入门]链表合并 #####题目附在下面,题目要求时用链表,但是大家应该都知道,链接不是随机存储,如果要写排序的话说实话很麻烦,而且每次比较都要遍历整个链表,时间复杂度也低,况且链表不像数组建立这么简单,说白了就算只建立链表加上后插法或者前插法插入链表光这两个都够很长时间来编写了, 题解列表 2023年03月01日 1 点赞 1 评论 424 浏览 评分:9.9