Question: Delete from list L1 nodes whose positions are to be found in an ordered list L2. For instance, if L1 = (A B C D
Delete from list L1 nodes whose positions are to be found in an ordered list L2. For instance, if L1 = (A B C D E) and L2 = (2 4 8), then the second and the fourth nodes are to be deleted from list L1 (the eighth node does not exist), and after deletion, L1 = (A C E).
Step by Step Solution
3.46 Rating (149 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
