文件名称:SqList
介绍说明--下载内容均来自于网络,请自行研究使用
有两个按元素值递增有序排列的链表l1和l2,编写一个程序将l1和l2表归并成一个按元素递增有序的链表l3,要求
(1)链表中允许有相同的元素,只要l1、l2、l3单调不减即可
(2)要利用原表空间(即l1和l2表)的结点空间构造l3。-There are two elements of the value increase ordered by the list l1 and l2, write a program that will merge l1 and l2 table into a linked list ordered by increasing element of l3, requirements (1) list the same elements are allowed, as long as l1 , l2, l3 can be monotone nondecreasing (2) to use the original table space (that l1 and l2 table) node space structure l3.
(1)链表中允许有相同的元素,只要l1、l2、l3单调不减即可
(2)要利用原表空间(即l1和l2表)的结点空间构造l3。-There are two elements of the value increase ordered by the list l1 and l2, write a program that will merge l1 and l2 table into a linked list ordered by increasing element of l3, requirements (1) list the same elements are allowed, as long as l1 , l2, l3 can be monotone nondecreasing (2) to use the original table space (that l1 and l2 table) node space structure l3.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SqList.cpp