Plz explain the error
now i have noticed that my reverse function is wrong…i dont able to get it how to write…plz give the solution
Anshul can you pls send the correct code as you have saved and send the code of merge of linked list…
can you plz send me the solution of this question only as i dont able to get how to take the input of n terms using LL
You can first use buildList function as
void buildList(node *&head,int N)
{
int data;
while(N>0)
{
cin>>data;
insertAtTail(head,data);
N- -;
}
}
The insertAtTail function is used to insert the values at the linked list… It is already explained in the online lectures… Pls refer to the video…
plz tell my mistake…
I have edited your code… Try to submit it now…