MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / lowest_common_ancestor.py

File lowest_common_ancestor.py

data_structures/binary_tree/lowest_common_ancestor.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1# https://en.wikipedia.org/wiki/Lowest_common_ancestor
2# https://en.wikipedia.org/wiki/Breadth-first_search
3
4from __future__ import annotations

Callers

nothing calls this directly

Calls 1

mainFunction · 0.70

Tested by

no test coverage detected