We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
If a road is not cheaper than a library you don't even need to build the graph and can just ignore the roads data. Otherwise, all you need to know is the number of connected components.
And, btw, why do they use dollars in HackerLand? Don't they have their own currency?
Roads and Libraries
You are viewing a single comment's thread. Return to all comments →
If a road is not cheaper than a library you don't even need to build the graph and can just ignore the roads data. Otherwise, all you need to know is the number of connected components. And, btw, why do they use dollars in HackerLand? Don't they have their own currency?