https://pta.patest.cn/pta/test/15/exam/3/question/724

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;
}

原文地址:https://www.cnblogs.com/hutao886/p/5571785.html