DoublyLinkedList.remove_back
Remove the item at the back of the linked list
Usage
remove_back()
Returns:
DoublyLinkedList
Returns the same Linked List without the deleted item.
Example
from jellybeans.structures import DoublyLinkedListLL1 = DoublyLinkedList([10, 3, 7, 29])LL1.remove_back().remove_back()print(LL1) # 10 => 3LL2 = DoublyLinkedList([5, 6, 7])LL2.remove_back()print(LL2) # 5 => 6