Closed danmunson closed 1 year ago
Use a stack while iterating to avoid repeated traversals of the tree. Essentially, the generator version of the forEach method.
forEach
Use a stack while iterating to avoid repeated traversals of the tree. Essentially, the generator version of the
forEach
method.