Motional Interview Question

Q. Find the goal node in this binary tree with the shortest cost.

Interview Answer

Anonymous

Feb 9, 2023

I have used C++ programming language. I couldn't get the most optimal solution to the question