Question: For the following question, write a method In java public SLL deletePositions(SLL L1, SLL L2), that deletes elements from L1 at locations specified by elements
For the following question, write a method
In java
public SLL
that deletes elements from L1 at locations specified by elements of L2. Assume that the starting location in L1 is from position (index 1). The modified list (with the elements deleted from L1 is returned).

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