Skip to content

Instantly share code, notes, and snippets.

@arafatkatze
Created May 8, 2018 14:55
Show Gist options
  • Save arafatkatze/5809c436b404c01515a291d859e7076e to your computer and use it in GitHub Desktop.
Save arafatkatze/5809c436b404c01515a291d859e7076e to your computer and use it in GitHub Desktop.
package main
import (
bheap "github.com/Arafatk/dataviz/trees/binaryheap"
)
func main() {
heap := bheap.NewWithIntComparator()
heap.Push(3)
heap.Push(19)
heap.Push(17)
heap.Push(2)
heap.Push(7)
heap.Push(1)
heap.Push(26)
heap.Push(35)
heap.Visualizer("heap.png")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment