Tree traversal: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 73:
current := next
</pre>
 
The above algorithm is wrong. If current := next everytime, so whenever next becomes null,
current becomes null, and hence the algorithm gets prematurely terminated.
 
[[uk:&#1054;&#1073;&#1093;&#1110;&#1076; &#1076;&#1077;&#1088;&#1077;&#1074;&#1072;]]