首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
Xsw777
2025年3月3日 17:35
链表合并 题解:c实现链表合并
P1025
回复 0
|
赞 10
|
浏览 1.7k
#include <stdio.h> #include <stdlib.h> typedef struct LNode{ int data; struct LNode* next; }LNode,*LinkList; //尾插 void TailLinkList(LinkList L1,LinkList L2){ //s1链表 int s1; sca...
小刘啊
2025年3月2日 20:18
链表合并 题解:直接做一次归并排序的合并
P1025
回复 0
|
赞 4
|
浏览 1.0k
#include <iostream> using namespace std; const int N = 110; int s1[N],s2[N]; int w[2*N]; int n,m; int main() { cin>>n; for(int i = 0; i < n; i++)cin>>s1[i]; cin>>m; for(int i = 0; i < m; i++)cin&g...
Chen沧月有泪
2025年2月19日 11:21
链表合并 题解:链表实现
P1025
回复 0
|
赞 3
|
浏览 1.1k
#include<iostream> #include<string> struct LinkNode { int num; struct LinkNode* next; }; int main() { int num1 = 0; std::cin >> num1; LinkNode* header1 = new LinkNode(); &nbs...
西电机试专家
2025年2月10日 16:52
链表合并 题解:我是马云,我要关闭电子游戏
P1025
回复 0
|
赞 4
|
浏览 1.1k
#include <bits/stdc++.h> using namespace std; int main(){ int s1,s2; int a[101] ,b[101],c[202]; cin>>s1; int j=0; for(int i=0;i<s1;i++){ &nbs...
Candour
2024年4月20日 16:31
链表合并 题解:
P1025
回复 0
|
赞 4
|
浏览 1.3k
#include<bits/stdc++.h> using namespace std; vector<int> A; int n, m; int main() { cin >> n; for(int i = 0; i < n; i ++) { int x; cin >> x; A.push_back(x); } cin >> m; for(int i = 0; i < m; i ++) { int x; cin >...
williams
2024年3月26日 12:38
链表合并 题解:c实现
P1025
回复 2
|
赞 1
|
浏览 1.5k
#include <stdio.h> #include <stdbool.h> #include <math.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <time.h> typedef struct LNode{ int data; struct LNode *next; }LNode,*LinkList; void freeList(LinkList l)...
为欢几何
2024年3月24日 16:17
链表合并 题解:0%,不知道哪里有问题,谢谢小伙伴们帮我看看
P1025
回复 2
|
赞 1
|
浏览 1.6k
#include<bits/stdc++.h> using namespace std; struct node{ int n; struct node *next; }; //创建链表 struct node* create(int n,int a[105]){ struct node* head = (struct node*)malloc(sizeof(struct node)); head->next=NULL; &n...
熹微
2024年3月27日 22:28
链表合并 题解:
P1025
回复 0
|
赞 1
|
浏览 998
每日一题 c语言 #include<stdio.h> typedef struct Node{ int num; struct Node *Next; }node; void Meg(node **head,node *L1,node *L2){ node *ptr,*h; ptr = (node *) malloc(sizeof (node)); h = (node *) malloc(sizeof...
1576684866
2024年3月24日 14:50
链表合并 题解:
P1025
回复 0
|
赞 1
|
浏览 1.2k
#include <cstdio> using namespace std; #include <string.h> #include <iostream> #include <stdlib.h> typedef struct node { int element; struct node* next; }node,*Linklist; int main() { //建立两个链表 ...
lingdongyang
2024年3月23日 16:09
链表合并 题解:
P1025
回复 0
|
赞 0
|
浏览 1.4k
尝试不用链表,感觉要简单点 #include<stdio.h> #include<string.h> #include<math.h> int main() { int n1; scanf("%d", &n1); int s1[105]; for (int i = 0; i < n1; i++) { scanf("%d", &s1[i]); } int n2; scanf("%d", &n2); int s2[105]; for (int i = 0; i <...
1
2
3
4
5
题目
链表合并
题解数量
49
发布题解
在线答疑
热门题解
1
链表合并 题解:c实现链表合并
2
链表合并 题解:
3
链表合并 题解:
4
链表合并 题解:直接做一次归并排序的合并
5
链表合并 题解:
6
链表合并 题解:我是马云,我要关闭电子游戏
7
链表合并 题解:只为锻炼手搓链表以及合并链表,代码越长就越容易出一些小问题,因此一定要细心
8
链表合并 题解:链表实现
9
c++STL库里有链表合并函数merge()
10
合并两个有序的链表因此只需要单个比较插入