Not giving output!

delete at a specific position is not gives the output.
please see my code function .

hello @Nikhil-Jettley-2567269533523013
the position that u r passing to ur deletemid function is 0 based or 1 based

sir, i consider the node’s position is 1.

see the issue is with ur prev pointer , while perfomring insertion u r not updating prev pointer properly that is why u r getting weird result.

try printing both node data and prev node data (using prev pointer) u will get it

still,it’s not gives output.https://ide.codingblocks.com/s/352705

@Nikhil-Jettley-2567269533523013
it think it is correc now->
image
see line 7 and 8 ( in line 7 , 1 was at 5 th position , but in line 8 it is no more there in the list)

yes sir,it comes correct ,i forget to scroll down.sir for solving questions it is compulsary to implement tthe required data structure or we can use stl function?

@Nikhil-Jettley-2567269533523013
you should know the implementations of all datastucture very well (from interview point of view).

use stl for online contests to save time (stl is important from cp point of view).