title: How do you implement a max-heap?
body: <p>So I've read up on heaps, and I understand the basic concept, </p>
  
  <p>but not how to actually implement it.</p>
  
  <p>Basically, my issue is </p>
  
  <ol>
  <li><p><em>How you know where to put a new node</em>?</p></li>
  <li><p><em>How you know which node to replace the root with when you delete</em>?</p></li>
  </ol>