You are on page 1of 1

1. How are the linked list elements being inserted into the list using the .

add
method?
 This method inserts an element at a specified index in the list. It shifts the element currently at
that position (if any) and any subsequent elements to the right will add one to their indices.

2. What happens to the remaining elements in the list when a certain element is
removed from it?
 removes the first occurrence of the specified element from this list, if it is present. If the list does
not contain the element, list remain unchanged.

You might also like