Google interview question

A Binary tree question ,with given node

Interview Answer

Anonymous

26 Nov 2024

I was able to answer the question from brute force to optimal