Gives WA dont know why

gives WA dont know why…

Hey @t.prateek98
Please share ur code in Coding Blocks IDE

Hey @t.prateek98
Tree formation is correct
The problem is in int helper function

debug for this
9
50 30 5 20 60 45 70 65 80
5 30 20 50 45 60 65 70 80
1
5 1

output 30

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.