Problem 1993 · Medium

Operations on Tree

Support lock, unlock and upgrade operations on the nodes of a rooted tree, with ancestor and descendant checks. The visual highlights the ancestor path affected by each operation.

Open the interactive visualisation