Data-Structures-and-Algorithms icon indicating copy to clipboard operation
Data-Structures-and-Algorithms copied to clipboard

RBT segfaults

Open professorcode1 opened this issue 2 years ago • 1 comments

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

professorcode1 avatar Feb 26 '23 17:02 professorcode1

Its a simple fix. Would you like me to open a PR?

professorcode1 avatar Feb 26 '23 18:02 professorcode1