-(void)reverse(node *head)
{
node*per,;
node *current = head;
node *next;
if(head ==NULL|| head->next==NULL)
{
return head;
}
while(current)
{
next = current.next;
current.next = per;
per = current;
current = next;
}
head = per;
}
-(void)reverse(node *head)
{
node*per,;
node *current = head;
node *next;
if(head ==NULL|| head->next==NULL)
{
return head;
}
while(current)
{
next = current.next;
current.next = per;
per = current;
current = next;
}
head = per;
}