Splay_runtimeerror


runtime error is caused by rotations but I am not able to find any error.

hi swati
when the splay is calling for the 2nd time for 2nd 10 then the run error is coming
dryrun for that case if u cant find the problem then reply

I tried with n=2;
10 20
when left_rot is called for 20 then the line if(p->parent ==NULL) gives the problem otherwise it runs fine but i don’t find any error there.

tell me the question name

this does not belong to a particular question. I was simply trying to code for splay trees.

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.