forked from TheAlgorithms/Go
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Tree package bug (TheAlgorithms#589)
* add Parent to binary search tree * refactor NIL in all trees * add Successor and Predecessor to * fix: tree package bug * remove dummy variable leaf * Refactoring: remove method; make NIL a sentinel value for 3 trees, and eliminate nil in those implementations. * change the method isRBTree to isRB * fix:remove base struct, separate Node to three different nodes that complete Node Interface; still save NIL, but make it unexported * Add more comments; Move Tree interface to tree_test package for future development. * code tidy * fix typo in comments
- Loading branch information
Showing
9 changed files
with
1,252 additions
and
744 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.