else If right child doesn ' t ▁ point ▁ ▁ to ▁ the ▁ current ▁ node , ▁ then ▁ print ▁ this ▁ ▁ node ' s data and update the right child pointer with the current node and update the current with it 's left child
else : NEW_LINE INDENT print ( curr . data , end = " ▁ " ) NEW_LINE prev . right = curr NEW_LINE curr = curr . left NEW_LINE DEDENT