You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the default behavior of pre/postorder is to accumulate the nodes in an array, but that is just one possible behavior that we could take when visiting each node. This could be a default iterator function that is passed into dfs if none other is provided. But, what if we allow the user to provide their own iterator function that is called when each node is visited?
The text was updated successfully, but these errors were encountered:
the default behavior of pre/postorder is to accumulate the nodes in an array, but that is just one possible behavior that we could take when visiting each node. This could be a default iterator function that is passed into dfs if none other is provided. But, what if we allow the user to provide their own iterator function that is called when each node is visited?
The text was updated successfully, but these errors were encountered: