paint-brush
Implementing Red-Black Tree in Go — Part 2: The Delete Operationby@dmitriiantonov90

Implementing Red-Black Tree in Go — Part 2: The Delete Operation

by Dmitrii AntonovOctober 31st, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

We figured out how the search and insert operation works in the red-black tree in the first part. In this part, we figure out the delete operation. The delete operation is more complicated than the insert operation. We must keep the original color of the deleted node. If the node to be deleted has two children, it is necessary to find a successor of this node.
featured image - Implementing Red-Black Tree in Go — Part 2: The Delete Operation
Dmitrii Antonov HackerNoon profile picture
Dmitrii Antonov

Dmitrii Antonov

@dmitriiantonov90

L O A D I N G
. . . comments & more!

About Author

Dmitrii Antonov HackerNoon profile picture
Dmitrii Antonov@dmitriiantonov90

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Coffee-web