Am I mistaken the input?

  • 0

    The code failed at input {-1,8,7,-3,4,4,-3,#,#,-1}.

    Does the '#' mean null?? If it does, how could it be possible that there are two null nodes in the middle of a linked list?

    Am I mistaken here? Thx.

  • 4

    See this for a visualization of the input.

Log in to reply

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