Removes the element at the specified position in this list.
Removes the element at the specified position in this list.Shifts any subsequent elements to the left (subtracts one from their indices).
For array lists removing from the end of the list has a time complexity of O(1), while removing from the beginning of the list has a time complexity of O(N) with N being the number of elements in the list.
For linked lists removing from the beginning or the end of the list has a time complexity of O(1), while removing from a random position in the middle of the list has a time complexity of O(N) with N being the number of elements in the list.