8 Apr
2015
8 Apr
'15
7:06 p.m.
Hello, Anthony, I have some problems with the iterator. I have managed to implement the ++ operator but I'm struggling with the -- operator. Actually I don't know if i can implement it in constant memory, because when I am on one node it's hard to decide whether I should go to it's left brother or up to the father. One idea would be to keep track of the nodes I have iterated until now using a stack but this would make the iterator quite heavy. Cosmin