lets say we have a binary tree structure:
(define-struct tree-node (left right node))
I'm having trouble with creating a binary search tree. My main problem is, I don't know how to insert a node into a tree or to overwrite left or right in make-tree-node structures.
Lets say we are at tree length 8 and I want to insert a new node if left or right is empty. My problem here is how do I go that deep? Is that possible recursively and if yes how do I do that?
can only use the intermidiate level.