From 1701eb3228657b01f4d89a304384818fc5e166d3 Mon Sep 17 00:00:00 2001 From: lee Date: Tue, 25 Jun 2019 14:13:54 +0100 Subject: [PATCH] readme btreemin from quest 12 --- subjects/btreemin.en.md | 21 +++++++++++---------- subjects/btreemin.fr.md | 21 +++++++++++---------- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/subjects/btreemin.en.md b/subjects/btreemin.en.md index f34718569..8de2f9a04 100644 --- a/subjects/btreemin.en.md +++ b/subjects/btreemin.en.md @@ -2,7 +2,7 @@ ### Instructions -Write a function, BTreeMin, that returns the node with the minimum value in the tree given by root +Write a function, `BTreeMin`, that returns the node with the minimum 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") - min := student.BTreeMin(root) + root := &piscine.TreeNode{Data: "4"} + piscine.BTreeInsertData(root, "1") + piscine.BTreeInsertData(root, "7") + piscine.BTreeInsertData(root, "5") + min := piscine.BTreeMin(root) fmt.Println(min.Data) } ``` @@ -39,8 +40,8 @@ func main() { And its output : ```console -student@ubuntu:~/student/btreemin$ go build -student@ubuntu:~/student/btreemin$ ./btreemin +student@ubuntu:~/student/test$ go build +student@ubuntu:~/student/test$ ./test 1 -student@ubuntu:~/student/btreemin$ +student@ubuntu:~/student/test$ ``` diff --git a/subjects/btreemin.fr.md b/subjects/btreemin.fr.md index f34718569..8de2f9a04 100644 --- a/subjects/btreemin.fr.md +++ b/subjects/btreemin.fr.md @@ -2,7 +2,7 @@ ### Instructions -Write a function, BTreeMin, that returns the node with the minimum value in the tree given by root +Write a function, `BTreeMin`, that returns the node with the minimum 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") - min := student.BTreeMin(root) + root := &piscine.TreeNode{Data: "4"} + piscine.BTreeInsertData(root, "1") + piscine.BTreeInsertData(root, "7") + piscine.BTreeInsertData(root, "5") + min := piscine.BTreeMin(root) fmt.Println(min.Data) } ``` @@ -39,8 +40,8 @@ func main() { And its output : ```console -student@ubuntu:~/student/btreemin$ go build -student@ubuntu:~/student/btreemin$ ./btreemin +student@ubuntu:~/student/test$ go build +student@ubuntu:~/student/test$ ./test 1 -student@ubuntu:~/student/btreemin$ +student@ubuntu:~/student/test$ ```