We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The first linked list is: 1 -> 3 -> 7 ->NULL
The second linked list is: 3->4->NULL
Hence, the merged linked list is: 1->2->3->3->4->NULL
where is the 7 gone from list 1 ?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Merge two sorted linked lists
You are viewing a single comment's thread. Return to all comments →
the explanation part with sample had mistake ,
Explanation
The first linked list is: 1 -> 3 -> 7 ->NULL The second linked list is: 3->4->NULL Hence, the merged linked list is: 1->2->3->3->4->NULL where is the 7 gone from list 1 ?