New answers tagged

-2 votes

A binary tree , its copy constructor and assignment operator

I don't think that this is the right way to create a copy, because this will create a shallow copy, deleting one tree might delete the other tree also.
3 votes
Accepted

Queue using circular linked list

There is a bug in the dequeue function: // Retrieve the value before deleting the node int value = node->value; The ...

Top 50 recent answers are included