Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ainevsia/Leetcode-Rust
/ isValidBST
Method
isValidBST
98. Validate Binary Search Tree/Solution.cpp:28–32 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
26
}
27
28
bool isValidBST(TreeNode* root) {
29
int ma = ((unsigned int) ~0) >> 1;
30
int mi = 1 << 31;
31
return help(root, mi, ma, false, false);
32
}
33
};
34
35
int main() {
Callers
1
main
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected