Find the average value of a binary tree both recursively and iteratively. Explain why iteratively may be preferred over recursively.
Anonymous
Iteratively should theoretically be more efficient. No function calls, uses less memory, etc.
Check out your Company Bowl for anonymous work chats.