Domanda di colloquio di Meta

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

Risposta di colloquio

Anonimo

15 gen 2025

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