Write an algorithm to delete a node at end of the doubly linked list and create the logic for the same
Please fix the following input errors: