Изменения
→Нерекурсивная реализация
successor.right.parent = successor.parent
'''else'''
successor.parent.right = successor.leftright '''if''' successor.left right != ''null''
successor.right.parent = successor.parent