The function shiftnode() which takes as imput two
Answers
Answered by
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
Social Sciences,
6 months ago
Chemistry,
6 months ago
Social Sciences,
1 year ago
Biology,
1 year ago