How self.next = None get the next value of l1?


  • 0

    I am very confused about this part. In the problem, self.next is set to None, but when I equal l1 to l1.next and print it, it gives me the next value of l1. Could anyone tell me how does this happen? In my view, when l1 = l1.next, it should equal to None.


Log in to reply
 

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