Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Basic solution solution in Clear category for How to Find Friends by u8m_
def check_connection(network, first, second):
for i,x in enumerate(network):
if first in x:
friend = x.replace(first,"").replace("-","")
if friend == second:
return True
else:
return check_connection(network[:i]+network[i+1:], friend, second)
break
return False
Nov. 13, 2015
Comments: