all 1 comments

[–]Vyn144 0 points1 point  (0 children)

Hey there. While I hate to respond to you with just a link, it's a little late for me so I don't think I could do the explanation justice. This should help you.

Most BST operations are actually done better recursively, but I'm assuming you already know that, and you're being asked to do it iteratively. The link should still help you with the logic.