|
When you get a situation like this, look at what code is run in this particular case and not in the other cases you have tried.
In this case, the code to delete the root node is run. One thing that code does not do is decrement the counter, so your counter variable is now out of synch with your tree.
|