Skip to content

Commit

Permalink
Removed Extra Lines
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamgupta57121 committed May 30, 2020
1 parent 72baebc commit a817a9c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Tree_Postorder_Traversal/Tree_Postorder_Traversal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ interface treeNodes
right?: treeNodes;
}


// Defining the nodes with their values and left right children. If a value is not given it is undefined.
const node11: treeNodes = { val: 11 };
const node10: treeNodes = { val: 10 };
Expand Down Expand Up @@ -53,7 +52,6 @@ function postOrderTraversal(currentNode: treeNodes)
console.log(currentNode.val + " -> ");
}


constructBinaryTree();
console.log("The postorder traversal of the binary tree is :");
postOrderTraversal(root);
Expand All @@ -72,4 +70,4 @@ The postorder traversal of the binary tree is :
7 ->
3 ->
1 ->
*/
*/

0 comments on commit a817a9c

Please sign in to comment.