()
| 3 | import "fmt" |
| 4 | |
| 5 | func main() { |
| 6 | treeHead := &TreeNode{ |
| 7 | Val: 5, |
| 8 | Left: &TreeNode{ |
| 9 | Val: 4, |
| 10 | }, |
| 11 | Right: &TreeNode{ |
| 12 | Val: 6, |
| 13 | Left: &TreeNode{ |
| 14 | Val: 3, |
| 15 | }, |
| 16 | Right: &TreeNode{ |
| 17 | Val: 7, |
| 18 | }, |
| 19 | }, |
| 20 | } |
| 21 | fmt.Print(isValidBST(treeHead)) |
| 22 | } |
| 23 | |
| 24 | type TreeNode struct { |
| 25 | Val int |
nothing calls this directly
no test coverage detected