Question: Computer science. Given the pointer to the head node of a doubly linked list, reverse the order of the nodes in place. That is change
Computer science. 
Given the pointer to the head node of a doubly linked list, reverse the order of the nodes in place. That is change the next and prev pointers of the nodes so that the direction of the list is reversed. Return a reference to the head node of the reversed list, Note: The head node might be NULL to indicate that the list is empty. Function Description Complete the reverse function in the editor below. reverse has the following parameter(s): DoublyLinkedListNode head: a reference to the head of a DoublyLinkedlist Returns - DoublyLinkedListNode: a reference to the head of the reversed list
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
