You are viewing a single comment's thread. Return to all comments →
can you please explain how this line (1) handle min function when h1 is None. what is the output of line2
i am confused...
head, h1, h2 = (h1, h1.next, h2) if min([h1.data, h2.data]) == h1.data else (h2, h1, h2.next) min(None, 3)
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 →
can you please explain how this line (1) handle min function when h1 is None. what is the output of line2
i am confused...