Concept Flow - Delete from End of Doubly Linked List
Start at tail node
Is tail null?
Yes→List empty, nothing to delete
No
Move tail to tail.prev
Set new tail.next to null
Delete old tail node
Done
Start from the tail node, check if list is empty, move tail pointer back, update links, and delete the last node.
