Browse Source

fix readme btreeinsertdata quest12 imports

pull/200/head
lee 5 years ago
parent
commit
dd06dd22aa
  1. 13
      subjects/btreeinsertdata.en.md
  2. 13
      subjects/btreeinsertdata.fr.md

13
subjects/btreeinsertdata.en.md

@ -26,11 +26,16 @@ Here is a possible [program](TODO-LINK) to test your function :
```go
package main
import (
"fmt"
piscine ".."
)
func main() {
root := &TreeNode{data: "4"}
BTreeInsertData(root, "1")
BTreeInsertData(root, "7")
BTreeInsertData(root, "5")
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)

13
subjects/btreeinsertdata.fr.md

@ -26,11 +26,16 @@ Here is a possible [program](TODO-LINK) to test your function :
```go
package main
import (
"fmt"
piscine ".."
)
func main() {
root := &TreeNode{data: "4"}
BTreeInsertData(root, "1")
BTreeInsertData(root, "7")
BTreeInsertData(root, "5")
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)

Loading…
Cancel
Save