Algorithm for this diagram
<p>I came across this problem while reading Tree Data structure , and I'm having hard time getting my head around on how to traverse the tree to insert subsequent nodes. I just wanted an algorithm to insert the nodes in the below format</p>

<pre><code>                              A
                          B       C
                        D   E   F    G
</code></pre>

<p>and so on....</p>
