MCPcopy Create free account
hub / github.com/VanjaRo/LeetCode / main

Function main

tasks/98.go:5–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import "fmt"
4
5func 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
24type TreeNode struct {
25 Val int

Callers

nothing calls this directly

Calls 2

isValidBSTFunction · 0.85
PrintMethod · 0.80

Tested by

no test coverage detected