Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountUnivalSubtrees ¶
func CountUnivalSubtrees(root *BinaryTree) int
CountUnivalSubtrees counts the number of unival subtrees.
Types ¶
type BinaryTree ¶
type BinaryTree struct {
// contains filtered or unexported fields
}
BinaryTree represents a binary unival tree.
Click to show internal directories.
Click to hide internal directories.