You are viewing a single comment's thread. Return to all comments →
it will handle it because if both are null when you check the first list it runs true and return second which is null itself so null is returned
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Merge two sorted linked lists
You are viewing a single comment's thread. Return to all comments →
it will handle it because if both are null when you check the first list it runs true and return second which is null itself so null is returned