Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LargestBSTSize ¶
func LargestBSTSize(tree *BinaryTree) int
LargestBSTSize Average case: when the tree is balanced O(n) time | O(h) space - where n is the number of nodes in the Binary Tree and h is the height of the Binary Tree
Types ¶
type BinaryTree ¶
type BinaryTree struct { Value int Left *BinaryTree Right *BinaryTree }
Click to show internal directories.
Click to hide internal directories.