From dfae81bbd1571d857bcd571deff4484bd1ad3b6e Mon Sep 17 00:00:00 2001 From: lee Date: Tue, 25 Jun 2019 13:43:27 +0100 Subject: [PATCH] readme btreemax from quest 12 --- subjects/btreemax.en.md | 21 +++++++++++---------- subjects/btreemax.fr.md | 21 +++++++++++---------- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/subjects/btreemax.en.md b/subjects/btreemax.en.md index dc389960b..3fa2bc5c3 100644 --- a/subjects/btreemax.en.md +++ b/subjects/btreemax.en.md @@ -2,7 +2,7 @@ ### Instructions -Write a function, BTreeMax, that returns the node with the maximum value in the tree given by root +Write a function, `BTreeMax`, that returns the node with the maximum value in the tree given by root This function must have the following signature. @@ -23,15 +23,16 @@ 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") - max := student.BTreeMax(root) + root := &piscine.TreeNode{Data: "4"} + piscine.BTreeInsertData(root, "1") + piscine.BTreeInsertData(root, "7") + piscine.BTreeInsertData(root, "5") + max := piscine.BTreeMax(root) fmt.Println(max.Data) } ``` @@ -39,8 +40,8 @@ func main() { And its output : ```console -student@ubuntu:~/student/btreemax$ go build -student@ubuntu:~/student/btreemax$ ./btreemax +student@ubuntu:~/student/test$ go build +student@ubuntu:~/student/test$ ./test 7 -student@ubuntu:~/student/btreemax$ +student@ubuntu:~/student/test$ ``` diff --git a/subjects/btreemax.fr.md b/subjects/btreemax.fr.md index dc389960b..3fa2bc5c3 100644 --- a/subjects/btreemax.fr.md +++ b/subjects/btreemax.fr.md @@ -2,7 +2,7 @@ ### Instructions -Write a function, BTreeMax, that returns the node with the maximum value in the tree given by root +Write a function, `BTreeMax`, that returns the node with the maximum value in the tree given by root This function must have the following signature. @@ -23,15 +23,16 @@ 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") - max := student.BTreeMax(root) + root := &piscine.TreeNode{Data: "4"} + piscine.BTreeInsertData(root, "1") + piscine.BTreeInsertData(root, "7") + piscine.BTreeInsertData(root, "5") + max := piscine.BTreeMax(root) fmt.Println(max.Data) } ``` @@ -39,8 +40,8 @@ func main() { And its output : ```console -student@ubuntu:~/student/btreemax$ go build -student@ubuntu:~/student/btreemax$ ./btreemax +student@ubuntu:~/student/test$ go build +student@ubuntu:~/student/test$ ./test 7 -student@ubuntu:~/student/btreemax$ +student@ubuntu:~/student/test$ ```