Starting from:
$30

$24

HW 9 Solution




In 1872, Samuel R Percy patents dried milk and in 1945,

the NFL required players to wear long stockings. Wow.




Write a program that opens a file of integers and generates

a binary tree using that data. The file format will be one

integer per line. The file will be called hw9.data.




As you generate the tree you must also create a linked list

that POINTS to the same nodes.




Your code must do a pre-, in-, and post-order traversal of

the tree and a traversal of the linked list. These must be

four seperate functions.




Your program must also correctly free all links of the tree

and list on termination. This MUST be a seperate function.




You have all of the code you need in your class notes. You

just need to figure out to combine them.




REQUIREMENTS:

-------------

1. Your program must run on Linux Mint.




2. Your full name must appear as a comment at the beginning

of your program.




3. Your source code must be named hw9-yourname.c

More products