Skip to content

Instantly share code, notes, and snippets.

@john-nash-rs
Created April 28, 2018 12:04
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 john-nash-rs/7d9af93b539140a34c1ca3f770d35275 to your computer and use it in GitHub Desktop.
Save john-nash-rs/7d9af93b539140a34c1ca3f770d35275 to your computer and use it in GitHub Desktop.
for i=n/2 downto 1
do max_heapify(A, i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment