• 2021-04-14
    pa=pa->next;
    qa->next=A->next;//将当前最小结点插入A表表头
    A->next=qa;
    }
    else{
    qb=pb;
    pb=pb->next;
    ()//将当前最小结点插入B表表头
    A->next=qb;
    }
    }
    while(pa){
    qa=pa;
    pa=pa->next;
    qa->next=A->next;
    A->next=qa;
    }
    while(pb){
    qb=pb;
    pb=pb->next;
    qb->next=A->next;
    A->next=qb;
    }
    pb=B;
  • 举一反三