Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Good- and Isolated network solution in Speedy category for New Cities by ChapeauClaque
def subnetworks(net, crushes):
goodnet = [j for j in net if not (j[0] in crushes or j[1] in crushes)]
isolated = set([i for x in net for i in x]) - set(i for i in str(goodnet)) - set(crushes)
return len(isolated) + len(goodnet)
July 22, 2019
Comments: