List Reverse( List L )
{
if(L==NULL)
return;
List head=(List)malloc(sizeof(struct Node));
head->Next=NULL;
List q=L,p;
while(q!=NULL)
{
p=q;
q=q->Next;
p->Next=head->Next;
head->Next=p;
}
return head->Next;
}

相关文章:

  • 2021-06-02
  • 2021-06-27
  • 2021-08-16
  • 2022-12-23
  • 2022-02-25
  • 2022-12-23
  • 2021-05-26
  • 2022-03-09
猜你喜欢
  • 2021-10-29
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案