//
pkg.gl
Category
github.com/achoarnold/cracking-the-coding-interview
datastructures
package
0.0.0-20211230051422-45e99aeff32b
Repository:
https://github.com/achoarnold/cracking-the-coding-interview.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
2
Dependents
0
Files
164 SLOC
#
Functions
BuildMaxHeapFromArray
BuildMaxHeapFromArray creates a new max heap from an array of values.
BuildMinHeapFromArray
BuildMinHeapFromArray creates a new min heap from a slice of integers.
NewMaxHeap
NewMaxHeap creates a new max heap.
NewMinHeap
NewMinHeap creates a new min heap.
#
Structs
MaxHeap
MaxHeap represents a max heap.
MinHeap
MinHeap is the data structure for a min heap.