mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
460 B
24 lines
460 B
5 years ago
|
package main
|
||
5 years ago
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
|
||
5 years ago
|
student "student"
|
||
|
|
||
5 years ago
|
"./correct"
|
||
5 years ago
|
)
|
||
|
|
||
5 years ago
|
func main() {
|
||
5 years ago
|
root := &correct.TreeNode{Data: "04"}
|
||
5 years ago
|
rootS := &student.TreeNode{Data: "04"}
|
||
|
|
||
|
ins := []string{"01", "07", "05", "12", "02", "03", "10"}
|
||
|
|
||
|
for _, v := range ins {
|
||
5 years ago
|
root = correct.BTreeInsertData(root, v)
|
||
5 years ago
|
rootS = student.BTreeInsertData(rootS, v)
|
||
|
}
|
||
|
|
||
5 years ago
|
correct.ChallengeTree("BTreeApplyByLevel", correct.BTreeApplyByLevel, student.BTreeApplyByLevel, root, rootS, fmt.Print)
|
||
5 years ago
|
}
|