title: Valid Huffman Codes?
body: <p>I'm trying to solve a Huffman Coding problem, but I'm not completely sure I understand the topic completely. I am trying to figure out if the following are is a valid Huffman Code:</p>
  
  <pre><code>A: 0  
  B: 01  
  C: 11  
  D: 110  
  E: 111  
  </code></pre>
  
  <p>What I'm thinking is that it is not valid, because A, or 1, would infringe on B, or 01. I'm not positive though. Could someone enlighten me on this?</p>
  
  <p>Edit: I'm sorry I meant to type A as 0 and not 1.</p>