Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
One liner (awful) solution in Creative category for How to Find Friends by CDG.Axel
def check_connection(network, first, second):
return second in __import__('functools').reduce(lambda friends, _: friends |
{y.pop() for x in network if len(y := (set(x.split('-'))-friends)) == 1}, network, {first})
Nov. 13, 2021
Comments: