Advertisement
Guest User

Untitled

a guest
May 22nd, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. Your program will read in an input file called p3.txt which will have information such as above. The file will have a string of numbers (integers) that you must read in that order. A positive (number >= 0) means add the number to the tree. A negative number (such as -1) means find the number in the tree and if found remove it from the tree. Note that you can be asked to remove a number that is not in the tree and your program should be able to handle it.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement