[Solved] Returning true if successful in deleting the node in C++
Your implementation is all wrong. For one thing, you are new‘ing temporary Node objects that you shouldn’t be allocating at all, and you are leaking them. And, you are not actually outputting the value of the Node that you delete. And, your whole function can be made much simpler, as you don’t need to enumerate … Read more