Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IntBinaryTree ¶
type IntBinaryTree struct { Value int Left, Right *IntBinaryTree }
IntBinaryTree is a typical binary tree that stores integers for a value.
func CartesianTree ¶
func CartesianTree(s []int) *IntBinaryTree
CartesianTree returns the corresponding Cartesian tree based on the given sequence.
Click to show internal directories.
Click to hide internal directories.