文件名称:list
介绍说明--下载内容均来自于网络,请自行研究使用
1、 合并两个链表
问题描述:设A与B分别为两个带有头结点的有序循环链表(所谓有序是指链接点按数据域值大小链接,本题不妨设按数据域值从小到大排列),list1和list2分别为指向两个链表的头指针。请写出将这两个链表合并为一个带头结点的有序循环链表的算法。
-1, the merger of the two lists descr iption of the problem: Let A and B are two nodes with the first order circular list (the so-called point of order is the link to the link at the size of data field values, this question may wish to set the value data field at an early age to large order), list1 and list2 points to the two lists were the head pointer. Please write the two lists into one ordered to take the lead node algorithm for circular linked list.
问题描述:设A与B分别为两个带有头结点的有序循环链表(所谓有序是指链接点按数据域值大小链接,本题不妨设按数据域值从小到大排列),list1和list2分别为指向两个链表的头指针。请写出将这两个链表合并为一个带头结点的有序循环链表的算法。
-1, the merger of the two lists descr iption of the problem: Let A and B are two nodes with the first order circular list (the so-called point of order is the link to the link at the size of data field values, this question may wish to set the value data field at an early age to large order), list1 and list2 points to the two lists were the head pointer. Please write the two lists into one ordered to take the lead node algorithm for circular linked list.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
合并两个链表.cpp