/
githubmirror
/
hello-algo
Обзор
Документация
Войти
/
githubmirror
/
hello-algo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
codes/go/pkg/tree_node_test.go
21 строка
319 B
Reanon
feat(go/tree): support array binary tree (#655)
26 июл 2023, 06:04
Не верифицирован
26 июл 2023, 06:04
575bcf5
Код
Авторство
О чём код?
// File: tree_node_test.go // Created Time: 2022-11-25 // Author: Reanon (793584285@qq.com) package pkg import ( "fmt" "testing" ) func TestTreeNode(t *testing.T) { arr := []any{1, 2, 3, nil, 5, 6, nil} node := SliceToTree(arr) // print tree PrintTree(node) // tree to arr fmt.Println(TreeToSlice(node)) }