trailer inserting or removing elements at either end of doubly linked list is straightforward to do indeedthe prev links eliminate the need to traverse the list to get to the node just before the tail we show the removal at the tail of doubly linked list in figure and the details for this operation in code fragment figure removing the node at the end of doubly linked list with header and trailer sentinels(abefore deleting at the tail(bdeleting at the tail(cafter the deletion code fragment removing the last node of doubly linked list variable size keeps track of the current number of elements in the list note that this method works also if the list has size one