Pregunta de entrevista de Meta

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

Respuesta de la entrevista

Anónimo

15 ene 2025

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