Created
May 8, 2018 14:55
-
-
Save arafatkatze/5809c436b404c01515a291d859e7076e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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