Problem 3383 · Hard

Minimum Runes to Add to Cast Spell

Group runes that reach each other, then count the groups that no other group feeds and that hold no starting rune.

Open the interactive visualisation