Em Andamento

c++ coding

Using the tree program, write a program to input FIFTEEN integers into a tree.

The program should print out the inorder, preorder and postorder traversals for the tree indicating the LEVEL of each node as it is printed out.

In addition to that there should be statements indicating :

The number of leaves in the tree

The number of nodes with only one right child and NO left child

The number of nodes with two children

The maximum and minimum leaf levels

The height of the tree

Also indicate if the tree is balanced

For Example…if you entered the values

45

3

66

7

8

99

23

11

44

55

6

2

88

9

0

32

14

103

92

The tree program I gave you would print out that the root is 45, that 3 is the left of 45,

66 is the right of 45, etc etc…

It would then do the inorder traversal:

0 (level 3)

2 (level2)

3 (level1)

6 (level 3)

etc

Then you would say (not necessarily correct) something like:

There are 8 leaf nodes

There are 4 nodes with one child

There are 7 nodes with two children

Maximum leaf level = 6

Maximum leaf level = 3

not balanced...height = 6

Habilidades: Programação C++

Ver mais: programming for children, number of nodes in a tree, node programming, node of a tree, children programming, balanced tree example, c++ coding, c# coding, c coding, write nodes, coding techniques error control using matlab, addition positive integers using linked list, matlab coding digital bandpass filter using windows, coding print, coding ftp client server using socket java, coding online examination system using java j2ee, examples coding gussian mixture model using matlab, preorder, coding check availability booking using aspnet, determine payment amount using statements paypal, coding elctricity bill using visual basicnet, video chat using coding

Acerca do Empregador:
( 3 comentários ) Hyderabad, India

ID do Projeto: #6823017

Premiar a:

WBDS

Hi, there, Nice to meet you. I can solve many problems related to C++ Programming. I hope you will hire me. I will do my best for you. Thank you.

₹950 INR em 1 dia
(0 Avaliações)
0.0

4 freelancers estão ofertando em média ₹1188 para este trabalho

usmanakramalii

I am expert in c++ and do this type of work like tree many times and have much more experienced Give me a chance I will not let you down

₹1500 INR em 1 dia
(2 Comentários)
1.0
nomanrafi

A proposal has not yet been provided

₹1050 INR in 3 dias
(2 Comentários)
0.8
KathrynFMurphy

A proposal has not yet been provided

₹1250 INR em 1 dia
(0 Comentários)
0.0