struct node* reverse(struct node *head)
{
static struct node *prev =NULL;
if(head==NULL) return prev;
struct node *q = head->next;
head->next=prev;
prev=head;
return reverse(q);
}
struct node* reverse(struct node *head)
{
sstruct node* reverse(struct node *head)
{
static struct node *prev =NULL;
if(head==NULL) return prev;
struct node *q = head->next;
head->next=prev;
prev=head;
return reverse(q);
}
struct node* reverse(struct node *head)
{
s