Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MaxHeap ¶
type MaxHeap struct {
// contains filtered or unexported fields
}
MaxHeap represents a max heap
func BuildMaxHeapFromArray ¶
BuildMaxHeapFromArray creates a new max heap from an array of values
type MinHeap ¶
type MinHeap struct {
// contains filtered or unexported fields
}
MinHeap is the data structure for a min heap
func BuildMinHeapFromArray ¶
BuildMinHeapFromArray creates a new min heap from a slice of integers
Click to show internal directories.
Click to hide internal directories.