package
Version:
v0.0.3-alpha
Opens a new window with list of versions in this module.
Published: Nov 9, 2021
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
¶
func AccessNodesByLayer(root *Node) [][]int
AccessNodesByLayer Function that access nodes layer by layer instead of printing the results as one line.
Travers the tree in the following order left --> root --> right
Max Function that returns max of two numbers - possibly already declared.
Travers the tree in the following order left --> right --> root
Travers the tree in the following order root --> left --> right
type BSTree struct {
Root *Node
}
BSTree Returns a binary search tree structure which contains only a root Node
Depth returns the calculated depth of a binary saerch tree
Node structure for Nodes
BstDelete removes the node
InOrderSuccessor Goes to the left
Insert a value in the BSTree
NewNode Returns a new pointer to an empty Node
Source Files
¶
Click to show internal directories.
Click to hide internal directories.