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

18
subjects/btreeisbinary.fr.md

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

Loading…
Cancel
Save