Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VanjaRo/LeetCode
/ isValidBST
Function
isValidBST
tasks/98.go:30–34 ·
view source on GitHub ↗
(root *TreeNode)
Source
from the content-addressed store, hash-verified
28
}
29
30
func
isValidBST(root *TreeNode) bool {
31
var
min *TreeNode
32
var
max *TreeNode
33
return
dfs(root, min, max)
34
}
35
36
func
dfs(root, min, max *TreeNode) bool {
37
if
root == nil {
Callers
1
main
Function · 0.85
Calls
1
dfs
Function · 0.70
Tested by
no test coverage detected