Merge two linkedlist

code–>


My merge function is not working correctly

Hello @sheikhhaji18 what are you trying to do by this:
cin>>head1>>head2;
please explain here.

in prateek bhaiya video operator overloading to take input
this video–>
https://online.codingblocks.com/app/player/118627/content/164505/569/lecture

@sheikhhaji18 actually i dont have access to your portal tell me the exact content name and the time at which he taught you to do like that.

Linked List 07 - Operator Overloading
time stamp–> 8:00

if i take input normally ,still it is not working

okay i was doing a mistake i was inserting at head hence the linkedlist are not sorted got it

@sheikhhaji18 if your doubt is resolved you can mark this as resolved.
Happy Learning!!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.