Category "red-black-tree"

How to paint binary tree in red-black

I have already created binary tree, and i have to paint every node in red or black to make red-black tree. struct node { string name; int year; int

What's the point of the colors in red/black trees?

We know AVL trees are better for searching and red-black trees are better for insertion and deletion because they require lesser rotations, but what is the need