Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tiwarishashwat/InterviewCodes
/ countPairs
Method
countPairs
NumberOfGoodLeafNodes.java:56–59 ·
view source on GitHub ↗
(TreeNode root, int distance)
Source
from the content-addressed store, hash-verified
54
return
leafDist;
55
}
56
public
int
countPairs(TreeNode root,
int
distance) {
57
dfs(root,distance);
58
return
res;
59
}
60
}
61
62
Callers
nothing calls this directly
Calls
1
dfs
Method · 0.95
Tested by
no test coverage detected