From ebbda76a9b1c1bd25eef79117f4765f73d5095c3 Mon Sep 17 00:00:00 2001 From: lee Date: Mon, 24 Jun 2019 17:46:39 +0100 Subject: [PATCH] fix readme from btreelevelcount from quest 12 --- subjects/btreelevelcount.en.md | 21 +++++++++++---------- subjects/btreelevelcount.fr.md | 21 +++++++++++---------- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/subjects/btreelevelcount.en.md b/subjects/btreelevelcount.en.md index 2576e1099..ef9c7806f 100644 --- a/subjects/btreelevelcount.en.md +++ b/subjects/btreelevelcount.en.md @@ -7,7 +7,7 @@ Write a function, BTreeLevelCount, that return the number of levels of the tree ### Expected function ```go -func BTreeLevelCount(root *piscine.TreeNode) int { +func BTreeLevelCount(root *TreeNode) int { } ``` @@ -21,23 +21,24 @@ 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(BTreeLevelCount(root)) + root := &piscine.TreeNode{Data: "4"} + piscine.BTreeInsertData(root, "1") + piscine.BTreeInsertData(root, "7") + piscine.BTreeInsertData(root, "5") + fmt.Println(piscine.BTreeLevelCount(root)) } ``` And its output : ```console -student@ubuntu:~/student/btreesearchitem$ go build -student@ubuntu:~/student/btreesearchitem$ ./btreesearchitem +student@ubuntu:~/student/test$ go build +student@ubuntu:~/student/test$ ./test 3 -student@ubuntu:~/student/btreesearchitem$ +student@ubuntu:~/student/test$ ``` diff --git a/subjects/btreelevelcount.fr.md b/subjects/btreelevelcount.fr.md index 2576e1099..ef9c7806f 100644 --- a/subjects/btreelevelcount.fr.md +++ b/subjects/btreelevelcount.fr.md @@ -7,7 +7,7 @@ Write a function, BTreeLevelCount, that return the number of levels of the tree ### Expected function ```go -func BTreeLevelCount(root *piscine.TreeNode) int { +func BTreeLevelCount(root *TreeNode) int { } ``` @@ -21,23 +21,24 @@ 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(BTreeLevelCount(root)) + root := &piscine.TreeNode{Data: "4"} + piscine.BTreeInsertData(root, "1") + piscine.BTreeInsertData(root, "7") + piscine.BTreeInsertData(root, "5") + fmt.Println(piscine.BTreeLevelCount(root)) } ``` And its output : ```console -student@ubuntu:~/student/btreesearchitem$ go build -student@ubuntu:~/student/btreesearchitem$ ./btreesearchitem +student@ubuntu:~/student/test$ go build +student@ubuntu:~/student/test$ ./test 3 -student@ubuntu:~/student/btreesearchitem$ +student@ubuntu:~/student/test$ ```