head 2 also stores that merged linked list. and looses its own orignal Linked list.so is there any way by which head 2 still retains its orignal linkedlist even after the merge() function call.
please help!!
head 2 also stores that merged linked list. and looses its own orignal Linked list.so is there any way by which head 2 still retains its orignal linkedlist even after the merge() function call.
please help!!