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.
- Merge two sorted linked lists
- Discussions
Merge two sorted linked lists
Merge two sorted linked lists
Sort by
recency
|
231 Discussions
|
Please Login in order to post a comment
This problem has several errors in the examples, it adds numbers that arent in the linked lists, removes other numbers that are, just in general seems like it was done by like the earliest attempt at AI, and then not checked at all for accuracy.
Typescript seems to be available, but it is not implemented.
C# solution after consulting geeksforgeeks when I got stuck
C#, test case two fails. It seems there is 1 test case, for which the first linked list is 8 ints. The next set of ints for list 2 are unordered it seems. All of my other test cases pass.
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 ?