Merge K sorted list - can't create empty ListNode - defaults to [0]

Creating an empty ListNode seems to default to [0] which breaks one of the test cases in javascript.

new ListNode(null) === [0]

test case requires the answer to be []

Comments (3)