You are viewing a single comment's thread. Return to all comments →
I like this, the if not head is only for checking if the list is empty. and if not head.prev is the terminate condition for recursive, am I right?
Reverse a doubly linked list
You are viewing a single comment's thread. Return to all comments →
I like this, the if not head is only for checking if the list is empty. and if not head.prev is the terminate condition for recursive, am I right?