If the dequeued node has a left child , add it to the queue with a horizontal distance hd - 1.
if ( temp . left != None ) : NEW_LINE INDENT temp . left . hd = hd - 1 NEW_LINE q . append ( temp . left ) NEW_LINE DEDENT