This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingEach connected group is a province; union the pairs and count the remaining roots.
What this asks
Count the connected groups of cities in a friendship matrix.
Union every linked pair, then count the distinct roots.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing