[编程入门]链表合并,小白代码 摘要:解题思路:手搓链表,首先输入a,b链表,初始化一个together链表备用。写一个函数minid找到链表中id最小的并返回该结点地址,考察a,b两链表中id最小者,并加入together链表同时修改该…… 题解列表 2022年07月18日 0 点赞 0 评论 459 浏览 评分:9.9
老哥们点评点评 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef struct s{ int id; int grade; stru…… 题解列表 2022年08月27日 0 点赞 0 评论 453 浏览 评分:9.9
尾插法创建链表、选择排序 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <malloc.h> typedef struct student { int id; int …… 题解列表 2022年08月28日 0 点赞 0 评论 435 浏览 评分:9.9
合并链表之【直接在head1的后面接上head2】 摘要:主要思路如下: 1、创建:分别创建好两个已知长度的链表并输入相关的值(从head->next开始存值) 2、合并:直接将第二个链表接到第一个链表的尾部,将第一个链表的尾部"p"指向第二个链表的第一…… 题解列表 2022年09月17日 0 点赞 0 评论 384 浏览 评分:9.9
链表合并之我用了stl容器偷懒解法 摘要:#include#include#include#include#includeusing namespace std; int main() { list<pair int n, m; …… 题解列表 2022年10月02日 0 点赞 0 评论 495 浏览 评分:9.9
Monkey————链表合并 摘要: //用了冒泡排序法和选择排序法,提交发现选择排序法通过快一点,具体原因母鸡 //遗憾的是两个排序法我嫌麻烦没分装成函数,见谅 #includ…… 题解列表 2022年10月29日 0 点赞 0 评论 603 浏览 评分: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 评论 417 浏览 评分:9.9
编写题解 1052: [编程入门]链表合并 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef struct Node{ int n; int g…… 题解列表 2022年12月07日 0 点赞 0 评论 432 浏览 评分:9.9
[编程入门]链表合并 60行不到解决战斗 摘要: # **[编程入门]链表合并** #include typedef struct st { int id; int score; …… 题解列表 2023年01月13日 0 点赞 0 评论 316 浏览 评分:9.9
链表合并(C手写链表) 摘要:解题思路:注意事项:参考代码:#include<stdlib.h> #include<stdio.h> typedef struct student { int num; int m…… 题解列表 2023年02月11日 0 点赞 0 评论 334 浏览 评分:9.9