Is there any better way to make DeleteTail function


here is my code.
I have used two while loops 1st to find the tail and 2nd to find the previous or 2nd last node.

hi @hiteshmehra809_c9f950ced91b5a1b refer https://www.geeksforgeeks.org/remove-last-node-of-the-linked-list/

okay… thanks for the resource.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.