Open jacbart opened 9 years ago
Example cases: delete Atlanta then Seattle, or just trying to delete Seattle at the begining.
I did a couple to be sure but one example was deleting the first three then printing and another was Portland, Seattle and then print and it broke.
The problem is in one of three different functions. We appreciate the input into the cases that cause the program to freak out, thanks!
No Problem
Well, the good news is that deletting Seattle is no longer a problem. The bad news, is that the fix involved not making a call to the rbDeleteFixup function. Therefore we will probably not worry about making it a red-black tree if the correct solution can't be found.
Deleting the first three cities still causes a problem however . . .
After deleting 2 or sometimes 3 cities from the original city list, and then printing the cities the program will spit out random gibberish.