Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/qiyuangong/leetcode
/ constructMaximumBinaryTree
Method
constructMaximumBinaryTree
java/654_Maximum_Binary_Tree.java:2–4 ·
view source on GitHub ↗
(int[] nums)
Source
from the content-addressed store, hash-verified
1
public
class
Solution {
2
public
TreeNode constructMaximumBinaryTree(
int
[] nums) {
3
return
construct(nums, 0, nums.length);
4
}
5
public
TreeNode construct(
int
[] nums,
int
l,
int
r) {
6
if
(l == r)
7
return
null;
Callers
nothing calls this directly
Calls
1
construct
Method · 0.95
Tested by
no test coverage detected