I'm writing a function to insert a Node into a Tree. The assignment calls for the insert function to return a boolean. I don't understand why I should return a boolean, or how I should do so in the first place?
The whole point of your professor making you make an insert() function return a bool is this:
did your value get inserted properly into the container? The complexities are left up to you, like does the node point to null or is there not enough physical memory to actually add another node? etc.