Write algorithms for the following : 2×5=10 (i) Split the singly link…

Previous year question for Data Structures.

Question

Write algorithms for the following : 2×5=10

(i) Split the singly linked list at the middle and make the second half as the first and vice-versa.

(ii) Delete all nodes from doubly linked list with value less than the value in the first node of the doubly linked list.

Related pages

More PYQs on Linear Linked Lists

Open on CachedInfo