Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second solution in Creative category for How to Find Friends by gabor285
def check_connection(network, first, second):
new_network = [i.split('-') for i in network ]
amigos={first}
while len ([[[amigos.add(i) for i in i2], new_network.remove(i2),print(i2)] for i2 in new_network if set(amigos).intersection(i2)]) != 0:
pass
return True if second in amigos else False
June 4, 2015
Comments: