Skip to content

Instantly share code, notes, and snippets.

@steven-tey
Last active September 25, 2019 17:50
Show Gist options
  • Save steven-tey/f378d6bb6e55170d024a728e78f8c4c2 to your computer and use it in GitHub Desktop.
Save steven-tey/f378d6bb6e55170d024a728e78f8c4c2 to your computer and use it in GitHub Desktop.
CS110 Session 3.2 Pre-Class Work (Final)
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@steven-tey
Copy link
Author

The initial heap:

Heap1

Step by step of the heap becoming a valid max heap

h1

h2

h3

h4

h5

h6

h7

h8

h9

h10

h11

h12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment