What does this input mean? I could not understand the structure of the list.


  • 0
    R

    RT. I have a problem with this input :

    {-1,8,7,-3,4,4,-3,#,#,-1}
    

    What does the # mean? Does it represent a null node? If it does, why should it appear in the middle of the list? Based on my understanding, I think the list is :

    -1 -> 8 -> 7 -> -3 -> 4 -> 4 -> -3 -> null -> null -> -1
    

    Does this list make sense? A null node can have a next pointer? I am quite confused and any explanation is appreciated. Thank you guys!!


Log in to reply
 

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