Monkey————链表合并 摘要: //用了冒泡排序法和选择排序法,提交发现选择排序法通过快一点,具体原因母鸡 //遗憾的是两个排序法我嫌麻烦没分装成函数,见谅 #includ…… 题解列表 2022年10月29日 0 点赞 0 评论 603 浏览 评分:9.9
萌新也能轻松AC之链表合并 摘要:#不用字典,仅用列表操作完成 ```python N,M = map(int,input().split()) numbers = [] 学号列表1 numbers1 = [] 排序后的学号列…… 题解列表 2022年10月08日 0 点赞 0 评论 430 浏览 评分:6.0
1052-链表合并 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;typedef struct Node{ int num; int grade…… 题解列表 2022年10月06日 0 点赞 0 评论 286 浏览 评分:0.0
链表合并+排列 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ typedef struct Link_List { i…… 题解列表 2022年10月03日 0 点赞 0 评论 314 浏览 评分:0.0
链表合并之我用了stl容器偷懒解法 摘要:#include#include#include#include#includeusing namespace std; int main() { list<pair int n, m; …… 题解列表 2022年10月02日 0 点赞 0 评论 495 浏览 评分:9.9
合并链表之【直接在head1的后面接上head2】 摘要:主要思路如下: 1、创建:分别创建好两个已知长度的链表并输入相关的值(从head->next开始存值) 2、合并:直接将第二个链表接到第一个链表的尾部,将第一个链表的尾部"p"指向第二个链表的第一…… 题解列表 2022年09月17日 0 点赞 0 评论 384 浏览 评分:9.9
尾插法创建链表、选择排序 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <malloc.h> typedef struct student { int id; int …… 题解列表 2022年08月28日 0 点赞 0 评论 433 浏览 评分:9.9
老哥们点评点评 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef struct s{ int id; int grade; stru…… 题解列表 2022年08月27日 0 点赞 0 评论 453 浏览 评分:9.9
1052: [编程入门]链表合并 摘要:解题思路:注意事项:结构体使用,结构体指针参考代码:#include<stdio.h> #include<malloc.h> typedef struct Node { int sn…… 题解列表 2022年08月08日 0 点赞 0 评论 325 浏览 评分:0.0
[编程入门]链表合并,小白代码 摘要:解题思路:手搓链表,首先输入a,b链表,初始化一个together链表备用。写一个函数minid找到链表中id最小的并返回该结点地址,考察a,b两链表中id最小者,并加入together链表同时修改该…… 题解列表 2022年07月18日 0 点赞 0 评论 459 浏览 评分:9.9