Pergunta de entrevista da empresa Meta

Given two node values in a binary tree, what is their lowest common ancestor?

Resposta da entrevista

Sigiloso

15 de jan. de 2025

I created a path for each target node, and found the lowest node based on those paths.