2079 3

CSC211 ยท 2079 ยท 10 marks

How do you insert and delete a node at kth position of the doubly linked list? Describe the process of implementing stack and queue using linked list.

How do you insert and delete a node at kth position of the doubly linked list? Describe the process of implementing stack and queue using linked list.[10]

Data Structures and AlgorithmsChapter 5: ListsBasic operations in Linked List

--- A doubly linked list node has three fields: - prev -- pointer to previous node - info -- data field - next -- pointer to next node Step Action -------------- Step 1 Allocate memory for new node and assign data Step 2 If position is 1, insert at beginning and update head Step 3 Traverse to the...