Browse Source

Merge pull request #216 from 01-edu/fixBtreeisbinary

fix readme btreeisbinary from quest 12
pull/222/head^2
augusto-mantilla 5 years ago committed by GitHub
parent
commit
e7bd7317d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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