• Am I the only one who used adjacency matrix?

Question related to mission How to Find Friends


Today I started to solve this task. Being clueless about any other ways I decided to use next steps: 1. Enumerate every connected drone 2. Create adjacency matrix based on tuple of connections. 3. Calculate sum of every power of adjacency matrix up to nodes count.

As far as I see, this is not the way author expected me to solve it.