Deleting leftmost leaf in a binary tree
问题 I wish to delete the leftmost leaf in a BT( not BST!). I tried to delete it using Reverse level order traversal but once I find the leftmost node and delete it and try returning, I cannot handle the extra recursive calls. Basically with the current code, my entire tree gets deleted recursively, but I just want it to delete leftmost leaf. I tried breaking the recursion using exit() and my entire program stopped. On first call only 5 should be deleted. On next call 25 should be deleted . On