Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountNodes ¶
func CountNodes(root *BinaryTree) int
CountNodes tallies the total number of nodes in the binary tree.
Types ¶
type BinaryTree ¶
type BinaryTree struct {
	// contains filtered or unexported fields
}
    BinaryTree represents a tree with a left and right subtree.
 Click to show internal directories. 
   Click to hide internal directories.