Answers

Question and Answer:

  Home  Microsoft Consultant

⟩ Tell me how do you reverse a doubly-linked list?

To do this, start from the head and traverse to the end. For each node in the list that was traversed, swap the values of the links “Next” and “Prev”. After that, set the “Head” to link to the last node or tail.

 177 views

More Questions for you: