From c4ab04db9c5649c3af4b4ae6afd8b9b4906fe9cc Mon Sep 17 00:00:00 2001 From: lee Date: Tue, 25 Jun 2019 12:44:10 +0100 Subject: [PATCH] raeame btreeapplybylevel from quest 12 --- subjects/btreeapplybylevel.en.md | 20 ++++++++++---------- subjects/btreeapplybylevel.fr.md | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/subjects/btreeapplybylevel.en.md b/subjects/btreeapplybylevel.en.md index 85cd3eb04..e964f86af 100644 --- a/subjects/btreeapplybylevel.en.md +++ b/subjects/btreeapplybylevel.en.md @@ -2,7 +2,7 @@ ### Instructions -Write a function, BTreeApplyByLevel, that applies the function given by fn to each node of the tree given by root. +Write a function, `BTreeApplyByLevel`, that applies the function given by fn to each node of the tree given by root. This function must have the following signature. @@ -23,26 +23,26 @@ 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") - student.BTreeApplyByLevel(root, fmt.Println) + root := &piscine.TreeNode{Data: "4"} + piscine.BTreeInsertData(root, "1") + piscine.BTreeInsertData(root, "7") + piscine.BTreeInsertData(root, "5") + piscine.BTreeApplyByLevel(root, fmt.Println) } ``` And its output : ```console -student@ubuntu:~/student/btreeapplybylevel$ go build -student@ubuntu:~/student/btreeapplybylevel$ ./btreeapplybylevel +student@ubuntu:~/student/test$ go build +student@ubuntu:~/student/test$ ./test 4 1 7 5 -student@ubuntu:~/student/btreeapplybylevel$ +student@ubuntu:~/student/test$ ``` diff --git a/subjects/btreeapplybylevel.fr.md b/subjects/btreeapplybylevel.fr.md index 85cd3eb04..e964f86af 100644 --- a/subjects/btreeapplybylevel.fr.md +++ b/subjects/btreeapplybylevel.fr.md @@ -2,7 +2,7 @@ ### Instructions -Write a function, BTreeApplyByLevel, that applies the function given by fn to each node of the tree given by root. +Write a function, `BTreeApplyByLevel`, that applies the function given by fn to each node of the tree given by root. This function must have the following signature. @@ -23,26 +23,26 @@ 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") - student.BTreeApplyByLevel(root, fmt.Println) + root := &piscine.TreeNode{Data: "4"} + piscine.BTreeInsertData(root, "1") + piscine.BTreeInsertData(root, "7") + piscine.BTreeInsertData(root, "5") + piscine.BTreeApplyByLevel(root, fmt.Println) } ``` And its output : ```console -student@ubuntu:~/student/btreeapplybylevel$ go build -student@ubuntu:~/student/btreeapplybylevel$ ./btreeapplybylevel +student@ubuntu:~/student/test$ go build +student@ubuntu:~/student/test$ ./test 4 1 7 5 -student@ubuntu:~/student/btreeapplybylevel$ +student@ubuntu:~/student/test$ ```