#include "stdafx.h"
#include<stdio.h>
#include<malloc.h>
#include<stdlib.h>
typedef int type;
typedef struct lnode //定义链表结点的数据结构
{
int data;
struct lnode *next;
}Lnode;
typedef Lnode node;
typedef struct dnode//定义双链表结点的数据结构
{
int data;
struct dnode *lnext;
struct dnode *rnext;
}Dnode;
void resolve10(node *h, node *bh)
{
node *p = h->next;
node *hh=NULL;
hh->next = h;
bh->next = p;
while (p&&p->next)
{
h->next = p->next;
p->next = h->next->next;
p = p->next;
h = h->next;
}
if (h->next != NULL)
h->next = NULL;
h = hh;
}