Data structure
Question -
Solution Preview - f the tree, the longest path fromit to any leaf node is similar to the shortest one. The purpose of the algorithm is to find out the color of any of the nodes, as follows. If n is root:n.color = blackn.black-quota = height n/2, rounded up.else if n.parent is red,n.color = blackn.black-quota = n.parent.black-quota.else if (n.parent is black):if .mi