Is there any grantee that there will always be even number of nodes?
I don't think the number of nodes has to be even. If there are odd number of nodes, you can just leave out the last node.
Can't believe it's you. Congrats on your offer.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.