Please check my deleteMiddle and deleteTail function

DeleteHead was explained in the video but deleteMiddle and deleteTail was asked to do it by ourselves. Please check these two function
Link to code->https://ide.codingblocks.com/s/595198

logic is correct
but didn’t consider the corner cases
like if only one element present or none element

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.