SparkNotes Shopping Cart  |     |  Checkout
Brought to you by Barnes and Noble
Implementation of Trees
  
 
Problems 1
Problem 1.1: As discussed above, each node in our implementation contains an integer as the only data element. Rewrite the typedef so that it contains age (an int) as one field and a string name as the other. [Solution]
Problem 1.2: With the old definition, declaring a variable to be a tree_t allocated all of the space for the tree and its data, is that still true with the new definition? Explain. [Solution]
Problem 1.3: Describe what you know about the values of the fields for a leaf node in this implementation. [Solution]
Help | Feedback | Make a request | Report an error | Send to a friend
 
You'll flip over our Pre-Algebra Study Cards—writing out flashcards is now a thing of the past.
More...
 
Feeling hopelessly behind? No Fear Algebra will help you catch up in no time.
More...
 
 
Go to top