I have an ordered binary search tree by name, but im trying to delete all students who have a score less than 50. Im having difficulty because the tree is not ordered by scores, rather its ordered by name, but i need to delete by scores. I cant for the life of god seem to be able to incorporate a traversal + node deletion without getting errors or it just plainly not working. Could someone set me in the correct direction? I couldnt find any threads where they were deleting by the variable that the tree is not ordered in and couldnt find any online.
Thank you.