Data-Structures-and-Algorithms
Data-Structures-and-Algorithms copied to clipboard
RBT segfaults
Make an RBT Tree with elements from 1 to 21, including both. Now try to delete 12 the program will segfault for trying to illegally write to memory via the line
x->parent = y;
from the main else block in RB_delete
Its a simple fix. Would you like me to open a PR?