Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/TheAlgorithms/Go
/ ITree
Interface
ITree
graph/lowestcommonancestor.go:19–25 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
17
}
18
19
type
ITree
interface
{
20
dfs(int, int)
21
addEdge(int, int)
22
GetDepth(int) int
23
GetDad(int) int
24
GetLCA(int, int) int
25
}
26
27
type
Tree
struct
{
28
numbersVertex int
Callers
6
LowestCommonAncestor
Function · 0.65
Kosaraju
Method · 0.65
NewTree
Function · 0.65
generateQuery
Function · 0.65
generateQuery
Function · 0.65
TestLCAWithLargeTree
Function · 0.65
Implementers
1
Tree
graph/lowestcommonancestor.go
Calls
no outgoing calls
Tested by
no test coverage detected