Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Friends maze solution in Clear category for How to Find Friends by Pouf
def check_connection(network, first, second):
friends = {first}
network = list(network)
while friends:
ditch = friends.pop()
for couple in list(network):
if ditch in couple:
if second in couple:
return True
network.remove(couple)
friends.add(couple.replace(ditch, '').replace('-', ''))
return False
Oct. 24, 2014
Comments: