All Questions
2 questions
1
vote
2
answers
34
views
Does python multivariable assignment order mattering?
I am working on leetcode problem 206 and have come up with :
class Solution(object):
def reverseList(self, head):
"""
:type head: ListNode
:rtype: ListNode
...
0
votes
0
answers
674
views
Initializing a temporary variable in linked list python
In python, linked list creation includes creating two classes, one is the class node and the other one is the class linkedlist.
In the class linkedlist , in the __init__() self.head=None is initiated....