Linked List Basic Functions

I am not able to implement the function of how to delete a node at the middle of a linked list, nor am I able to implement how to delete a node at the end of a linked list.

Please implement these 2 functions in my ide code shared above.
Also, please explain me, how the 2 functions work along with the explanation,

I have implemented both functions
check here

to understand i also have shared some resources to you on chatbox