OYO Interview Question

distance bw two nodes in a binary tree

Interview Answer

Anonymous

Sep 22, 2019

i answered using lca , but he asked it to optimize more .