Computer Science, asked by Akanshnama9046, 8 months ago

The function shiftnode() which takes as imput two

Answers

Answered by hardikrakholiya21
2

Explanation:

To rotate the Doubly linked list, we need to change next of Nth node to NULL, next of last node to previous head node, and prev of head node to last node and finally change head to (N+1)th node and prev of new head node to NULL (Prev of Head node in doubly linked list is NULL)

Similar questions