1 wrong answer testcase

https://hack.codingblocks.com/contests/c/537/475?_ga=2.128065932.1661448070.1550406484-1721200315.1546842346
code
https://ide.codingblocks.com/s/56807

Make a dispaly function and check your build tree function. Algo is correct

unable to debug in build function…
help here please…

help here please…

Hi Gaurav, your buildPre() function was not correct. I’ve corrected it and you can refer to it here https://ide.codingblocks.com/s/60511.

thank you…