Singly linked list


(Singly Linked List) You are given a linked list, L, and another linked list, P, containing integers, sorted in ascending order. The operation print_lots(L,P) will print the elements in L that are in positions specified by P. For instance, if list P = 1, 3, 4, 6, the first, third, fourth, and sixth elements in list L are printed. Write the routine print_lots(L,P). You should use only the basic list operations.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Singly linked list
Reference No:- TGS089040

Expected delivery within 24 Hours