FAILING ONE TESTCASE PLS CHECK


FAILING ONE TESTCASE PLS CHECK

your bottom view function is correct
mistake is in build tree function

i have write the code for build tree
you can see it in modified Code below

Modified Code

if you have more doubts regarding this feel free to ask
i hope this helps
if yes hit a like :heart:: and don’t forgot to mark doubt as resolved :grinning: