Javascript and the types of lists


  • 0
    B

    I've been trying to solve this question (and other similar questions that have a commented out constructor) using the ListNode constructor from the comments in the code.
    When I submit, it shows me the input (after failure) of Array of arrays.
    Last executed input: [[],[1]]
    But I was expecting Array of ListNodes.

    What's the deal?


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.