Skip to content

Commit 02d34d9

Browse files
committed
made the program to convert a postorder traversal to BST
1 parent d4fa502 commit 02d34d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Data Structures/Trees/BST/PostOrderToBST.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ void Inorder(node *root)
9292
int main()
9393
{
9494
int post[] = {1,7,5,50,40,10};
95+
int sizePost = ( sizeof(post)/sizeof(post[0]));
9596

9697
struct node *root = ConvertBSTPostorder(post,sizePost);
97-
Inorder(root)
98+
Inorder(root);
9899

99100
}

0 commit comments

Comments
 (0)