You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Restructure code by removing the Node class. Remove CreateAllChildren method and make the constructor do it instead.
* Inline temp variables of DFSSTack and BFSQueue.
Copy file name to clipboardExpand all lines: chapters/tree_traversal/code/cs/Program.cs
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ static void Main(string[] args)
17
17
tree.BFSQueue();
18
18
Console.WriteLine("DFSRecursivePostorder");
19
19
tree.DFSRecursivePostorder();
20
+
20
21
// Uncommenting the following 2 lines will result in an exception thrown because at least one Node of the Tree has more than 2 children and therefor a DFSRecursiveInorderBinary doesn't work.
0 commit comments