You are viewing a single comment's thread. Return to all comments →
Hail Python!!!
def Reverse(head): head.prev, head.next = head.next, head.prev if head.prev is not None: return Reverse(head.prev) else: return head
Reverse a doubly linked list
You are viewing a single comment's thread. Return to all comments →
Hail Python!!!