Skip to content

Instantly share code, notes, and snippets.

@kunigami
Created November 15, 2017 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kunigami/b185747ae441ea2f22fe568c2b4b87d5 to your computer and use it in GitHub Desktop.
Save kunigami/b185747ae441ea2f22fe568c2b4b87d5 to your computer and use it in GitHub Desktop.
let restPrimaryHeap = PrimaryHeap.deleteMin primaryHeap
in PrimaryHeap.merge minPrimaryHeap restPrimaryHeap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment