-
Robert Griesemer authored
- use Init to establish heap invariant on a non-empty heap - use Fix to update heap after an element's properties have been changed (The old code used Init where it wasn't needed, and didn't use Fix because Fix was added after the example was written.) LGTM=bradfitz R=adonovan, bradfitz CC=golang-codereviews https://golang.org/cl/94520043
b2d1a2b5
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
example_intheap_test.go | ||
example_pq_test.go | ||
heap.go | ||
heap_test.go |