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
Merge two sorted linked lists
Sort by
recency
|
984 Discussions
|
Please Login in order to post a comment
Hi all, here my recursive solution in Java 8.
My Java 8 Solution
My Java solution with linear time complexity and constant space complexity:
def mergeLists(head1, head2):