title: Height of a full binary tree
body: <p>How to solve below equation for the height of a full binary tree, which contains n number of nodes?</p>
  
  <p>n=2^(h+1)-1</p>
  
  <p>I got the answer as,</p>
  
  <pre><code>             n = 2^(h+1)-1
  n+(-2^(h+1)+1) = 2^(h+1)-1 + (-2^(h+1)+1)
     n-2^(h+1)+1 = 0
               h = ln(n+2)/ln(2)
  </code></pre>
  
  <p>Is this equation solving is correct? If not, How to get h from n = 2^(h+1)-1 equation?</p>