Browse Source

fix readme btreeisbinary from quest 12

pull/216/head
lee 5 years ago
parent
commit
525d91717a
  1. 18
      subjects/btreeisbinary.en.md
  2. 18
      subjects/btreeisbinary.fr.md

18
subjects/btreeisbinary.en.md

@ -23,23 +23,23 @@ package main
import (
"fmt"
student ".."
piscine ".."
)
func main() {
root := &student.TreeNode{Data: "4"}
student.BTreeInsertData(root, "1")
student.BTreeInsertData(root, "7")
student.BTreeInsertData(root, "5")
fmt.Println(student.BTreeIsBinary(root))
root := &piscine.TreeNode{Data: "4"}
piscine.BTreeInsertData(root, "1")
piscine.BTreeInsertData(root, "7")
piscine.BTreeInsertData(root, "5")
fmt.Println(piscine.BTreeIsBinary(root))
}
```
And its output :
```console
student@ubuntu:~/student/btreeisbinary$ go build
student@ubuntu:~/student/btreeisbinary$ ./btreeisbinary
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
true
student@ubuntu:~/student/btreeisbinary$
student@ubuntu:~/student/test$
```

18
subjects/btreeisbinary.fr.md

@ -23,23 +23,23 @@ package main
import (
"fmt"
student ".."
piscine ".."
)
func main() {
root := &student.TreeNode{Data: "4"}
student.BTreeInsertData(root, "1")
student.BTreeInsertData(root, "7")
student.BTreeInsertData(root, "5")
fmt.Println(student.BTreeIsBinary(root))
root := &piscine.TreeNode{Data: "4"}
piscine.BTreeInsertData(root, "1")
piscine.BTreeInsertData(root, "7")
piscine.BTreeInsertData(root, "5")
fmt.Println(piscine.BTreeIsBinary(root))
}
```
And its output :
```console
student@ubuntu:~/student/btreeisbinary$ go build
student@ubuntu:~/student/btreeisbinary$ ./btreeisbinary
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
true
student@ubuntu:~/student/btreeisbinary$
student@ubuntu:~/student/test$
```

Loading…
Cancel
Save