Created
May 6, 2013 23:37
-
-
Save kirkconnell/5529175 to your computer and use it in GitHub Desktop.
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
Red/Black Tree implementation in GO | |
1- Write the tree.Add(int) function | |
2- Write a red black tree validator | |
- check if root is black | |
- check if the number of black nodes from the root to every nil is the same | |
- check that there are no two consecutive red nodes | |
3- Write the tree.Contains(int) function |
oscardelben
commented
May 7, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment