Browse Source

Update btreeinsertdata.en.md

content-update
LEEDASILVA 5 years ago committed by GitHub
parent
commit
e26e3ce252
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      subjects/btreeinsertdata.en.md

10
subjects/btreeinsertdata.en.md

@ -32,14 +32,14 @@ import (
)
func main() {
root := &piscine.TreeNode{data: "4"}
root := &piscine.TreeNode{Data: "4"}
piscine.BTreeInsertData(root, "1")
piscine.BTreeInsertData(root, "7")
piscine.BTreeInsertData(root, "5")
fmt.Println(root.left.data)
fmt.Println(root.data)
fmt.Println(root.right.left.data)
fmt.Println(root.right.data)
fmt.Println(root.Left.Data)
fmt.Println(root.Data)
fmt.Println(root.Right.Left.Data)
fmt.Println(root.Right.Data)
}
```

Loading…
Cancel
Save