首页
DreamJudge
院校信息
考研初试
机试真题
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
leo110
2025年5月16日 14:27
链表合并 题解:只为锻炼手搓链表以及合并链表,代码越长就越容易出一些小
P1025
回复 0
|
赞 0
|
浏览 215
#include<iostream> using namespace std; struct Node{ int data; struct Node *next; }; struct Node *create(int n){ struct Node *head=nullptr,*p=nullptr; for(int i=0;i<n;i++){ &...
16696033405
2025年3月23日 15:30
链表合并 题解:
P1025
回复 0
|
赞 0
|
浏览 314
#include<stdio.h> #define MAX 1000 int main(){ int s1,s2; int a[MAX],b[MAX],c[MAX]; scanf("%d",&s1); for(int i=0;i<s1;i++) scanf("%d",&a[i]...
emoji
2025年3月19日 20:51
链表合并 题解:链表卡40分钟,用vector直接秒杀。。。
P1025
回复 0
|
赞 1
|
浏览 305
#include<iostream> #include<vector> #include<algorithm> using namespace std; int main(){ vector<int>v; int n,m,temp; cin>>n; for(int i=0;i<n;++i){ cin>>temp; v.push_back(temp); } cin>>m; for(int i=0;i<m;++i){ cin>>...
yeee700
2025年3月17日 01:36
链表合并 题解:
P1025
回复 0
|
赞 6
|
浏览 516
#include<stdio.h> #include<stdlib.h> typedef struct Node{ int Element; struct Node*Next; }Node; int s1,s2; Node* Create(int n){ Node*head,*pre; int i; for(i=1;i<=n;i++){ &n...
CVcheng
2025年3月13日 14:10
链表合并 题解:
P1025
回复 0
|
赞 1
|
浏览 327
#include <bits/stdc++.h> using namespace std; int main() { int x,y; vector<int> vec1,vec2; cin>>x; for(int i=0;i<x;++i){ int num1; &n...
kkkker
2025年3月3日 18:55
链表合并 题解:
P1025
回复 0
|
赞 7
|
浏览 468
#include<iostream> #include<string.h> #include<algorithm> using namespace std; //1025链表合并 struct node{ int data; struct node *next; }; int main(){ int m,n; cin>>m; struct...
Xsw777
2025年3月3日 17:35
链表合并 题解:c实现链表合并
P1025
回复 0
|
赞 10
|
浏览 954
#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
|
赞 3
|
浏览 518
#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
|
浏览 517
#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
|
赞 3
|
浏览 629
#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...
1
2
3
...
5
题目
链表合并
题解数量
45
发布题解
在线答疑
热门题解
1
链表合并 题解:c实现链表合并
2
链表合并 题解:
3
链表合并 题解:
4
链表合并 题解:
5
链表合并 题解:直接做一次归并排序的合并
6
链表合并 题解:链表实现
7
链表合并 题解:我是马云,我要关闭电子游戏
8
c++STL库里有链表合并函数merge()
9
合并两个有序的链表因此只需要单个比较插入
10
先建立链表、再合并