Deletion in LINKEDLIST

I want to create a single function to insert an element at any positon
and another single function to delete an element in linkedlist

I have been doing it individually

Can you please modify my code into a single function for insertion and another single function for deletion

hi @jdgsijafw you have to specify at which position do you want to insert/delete the node, please tell which kind of function you want to implement

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.