Search⌘ K
AI Features

Lowest Common Ancestor of a Binary Tree III

Lowest Common Ancestor of a Binary Tree III gives two nodes with parent references but no root. Return the lowest node that has both nodes as descendants.

Statement

You are given two nodes, p and q. The task is to return their lowest ...