Course Solutions Uncategorized (Solved) : Need Code C Binary Search Tree Strings Contains Values Example Bstinsert 1 Bstinsert 3 B B Q33249540 . . . .

(Solved) : Need Code C Binary Search Tree Strings Contains Values Example Bstinsert 1 Bstinsert 3 B B Q33249540 . . . .

 

I need a code of c++ binary search tree with strings thatcontains values.

for example

BST.insert(1,”a”)

BST.insert(3,”b”)

BST.insert(2,”c”)

and if I print using BST.inorder(), it should gives me

1,a

2,c

3,b

(a corresponds to 1, b corresponds to 3, c corresponds to 2)

Basically I need to print both strings and values but the orderdepends on integer values ( also have to do postorder,preorder)

I really don’t know how to do with strings.

(I prefer to use class)

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Answered) : Project B C Total Capital Sr 1 000 000 Sr 800 000 Sr 600 000 Cost Capital Paid Interest 3 Q33251139(Answered) : Project B C Total Capital Sr 1 000 000 Sr 800 000 Sr 600 000 Cost Capital Paid Interest 3 Q33251139

<table border="1" cellpadding="0" cellspacing="0" style="width:552px;"><tbody><tr><td style="width:246px;"><p><strong>Project</strong></p></td><td style="width:103px;"><p><strong>A</strong></p></td><td style="width:103px;"><p><strong>B</strong></p></td><td style="width:103px;"><p><strong>C</strong></p></td></tr><tr><td style="width:246px;"><p>Total capital</p></td><td style="width:103px;"><p>S.R. 1,000,000</p></td><td style="width:103px;"><p>S.R. 800,000</p></td><td style="width:103px;"><p>S.R. 600,000</p></td></tr><tr><td style="height:40px;width:246px;"><p>Cost of capital (Paid interest in 3 years)</p></td><td style="height:40px;width:103px;"><p>S.R. (150,000)</p></td><td style="height:40px;width:103px;"><p>S.R. (120,000)</p></td><td style="height:40px;width:103px;"><p>S.R.