1. 首页
  2. 数据库
  3. 其它
  4. 链表必学算法(三):归并法

链表必学算法(三):归并法

上传者: 2021-01-17 04:36:01上传 PDF文件 24.76KB 热度 14次
/*归并法:用于合并两个链表*/ /* * SCs in different cases * author: Whywait */ typedef struct node { Elemtype data; struct node* next; } Lnode; /*case ONE*/ Lnode* merge1(Linklist& LA, Linklist& LB) { // merge two sorted Singly linked lists // LA, LB and the return one ( LC ) all have a head node // all the
下载地址
用户评论