MCPcopy 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
30func isValidBST(root *TreeNode) bool {
31 var min *TreeNode
32 var max *TreeNode
33 return dfs(root, min, max)
34}
35
36func dfs(root, min, max *TreeNode) bool {
37 if root == nil {

Callers 1

mainFunction · 0.85

Calls 1

dfsFunction · 0.70

Tested by

no test coverage detected