package
Version:
v0.0.0-...-34ffc9b
Opens a new window with list of versions in this module.
Published: Aug 7, 2018
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type ArrayTree struct {
Array []*TreeNode
}
ArrayTree is Array representation of tree
1, 2, 3, 4, 5 =>
1
2 3
4 5 nil nil
func NewArrayTree(input []interface{}) *ArrayTree
NewArrayTree is constructor of creating a ArrayTree with giving slice
GetRoot return the root TreeNode of tree
TreeNode is simple not ancesstor treenode
Source Files
¶
Click to show internal directories.
Click to hide internal directories.