Help me out in this problem


@Kartikkhariwal1 runtime error is coming?

hEY @shivammishra20121999

            if(f!=NULL)
            {
                int val=f->val;
                temp.push_back(val);
            }

@Kartikkhariwal1 i have debug it still same error is coming?

Also add

if(root==NULL)return {};

Working on my side ,please check again :slight_smile:

@Kartikkhariwal1 other error is there i got it>>

1 Like

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.