Problem 2049 · Medium

Count Nodes With the Highest Score

Count nodes whose removal yields the highest product of remaining component sizes.

Open the interactive visualisation