![]() |
[Java] BST Promoting Childs
Alright, I'm in the middle of my study on Binary Search Tree (BST) and right now I'm just developing the recrusive method in situations when 1 parent has been removed and the parent has 1 or 2 child and I must promote one of them into the parent position right?
Now I hate asking this kind of question, especially to my professor but, did I get it right? Code:
private BSTNode promote(BSTNode v_BSTN) |
All times are GMT -8. The time now is 12:48 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project