...

/

Quiz on Red-Black Trees

Quiz on Red-Black Trees

Test yourself on what you've learned about red-black trees.

We'll cover the following...
Technical Quiz
1.

What is a property of red-black trees?

A.

A red-black tree with nn nodes has a height of nn.

B.

The add(x) and remove(x) operations on a red-black tree run in O(n)O(n) worst-case time.

C.

The amortized number of rotations performed during an add(x) or remove(x) operation is constant.

D.

The height of a red-black tree with nn nodes is always 2log(n)2\log(n).


1 / 4