Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
4
from
__future__
import
annotations
Callers
nothing calls this directly
Calls
1
main
Function · 0.70
Tested by
no test coverage detected