|
@@ -1,3 +1,6 @@
|
|
|
|
+// package heap implements a generic in-place max heap on a slice for any type.
|
|
|
|
+package heap
|
|
|
|
+
|
|
/*
|
|
/*
|
|
Copyright 2022 Dale Weiler <[email protected]>.
|
|
Copyright 2022 Dale Weiler <[email protected]>.
|
|
Made available under Odin's BSD-3 license.
|
|
Made available under Odin's BSD-3 license.
|
|
@@ -6,9 +9,6 @@
|
|
Dale Weiler: Initial implementation
|
|
Dale Weiler: Initial implementation
|
|
*/
|
|
*/
|
|
|
|
|
|
-// Package implements a generic max heap in-place on a slice for any type.
|
|
|
|
-package heap
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
Constructs a max heap in slice given by data with comparator. A max heap is
|
|
Constructs a max heap in slice given by data with comparator. A max heap is
|
|
a range of elements which has the following properties:
|
|
a range of elements which has the following properties:
|