❔ Design pattern Iterator
So I was working with
Node<T>
in PreOrder Traversal when i try to test it gives me an error message saying Something is wrong in our systems, your code took too long to execute.
Here's my code
2 Replies
well you have infinite recursion in your GetEnumerator
the node should be enumerable, the iterator should be ienumerator
and you still have to implement the enumerator logic
your code right now does effectively nothing
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.