Question: In java, Delete from L1 nodes whose position are to be found in an ordered list L2. For instance, if L1=(A B C D E)
In java, Delete from L1 nodes whose position 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
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
