Problem 965 · Easy

Univalued Binary Tree

Decide whether every node in a binary tree holds the same value as the root. The visual colours each node and flags any that differ.

Open the interactive visualisation