Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/neetcode-gh/leetcode
/ isBalanced
Method
isBalanced
java/0110-balanced-binary-tree.java:24–26 ·
view source on GitHub ↗
(TreeNode root)
Source
from the content-addressed store, hash-verified
22
}
23
24
public
static
boolean isBalanced(TreeNode root) {
25
return
dfs(root).getKey();
26
}
27
}
28
29
// Solution using the bottom up approach
Callers
nothing calls this directly
Calls
2
dfs
Method · 0.95
getKey
Method · 0.45
Tested by
no test coverage detected