Help with error

prob: https://hack.codingblocks.com/app/contests/2022/1067/problem

sol: https://ide.codingblocks.com/s/414418

1 test case is passing getting run time error.

hello @raghav007
image

a) declare ur root inside while loop

b) update ur root node when calling delete function

just did that still not passing

pls wait for sometime

check now->