You are viewing a single comment's thread. Return to all comments →
In the function, we only create 2 Node variables. We don't create any arrays of size n or m.
While creating the linked list, we just change where the pointers point. We don't copy/duplicate any data.
HackerRank solutions.
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 →
In the function, we only create 2 Node variables. We don't create any arrays of size n or m.
While creating the linked list, we just change where the pointers point. We don't copy/duplicate any data.
HackerRank solutions.