How to write findMinimum of a lazy deleted Binary Search Tree in Java
问题 I am writing a class for a Binary Search Tree in Java that uses lazy deletion (instead of removing the node from the tree, it sets a "deleted" flag to true) My question is, how would I implement a findMin function for a tree like this? The normal method of just going to the leftmost leaf wouldn't work because that lead may be "deleted". For example, A tree like this where you delete 20, 5, and 17 25 *20 30 *17 89 *5 should return 25 when you call findMin(). My implementation looks like this: