如题,给出链表反转的递归和非递归算法:
C
Node *reverse (Node *head)
{
Node *p1=NULL,*p2=NULL,*p3=NULL;
if(NULL == head || NULL == head->next)
return head;
p1=head;
p2=p1->next;
...
6-01 2,447 views
阅读全文 0