← All problemsSign in

The Trading Topology

Sheldon is designing a game like AOE(Age Of Empires). In that game a player will make his empire consisting of many cities and towns. The empire is such , though each city is not directly connected to all other cities, but there exist transportation routes such that from one city materials and goods can be send to any other city. After the players make their empires they may declare war on others

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start