Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Short and Brute solution in Clear category for Break Rings by altarfinch
# migrated from python 2.7
import itertools as it
from functools import reduce
def break_rings(links):
rings = list(reduce(set.union,links))
for i in rings:
for c in it.combinations(rings,i):
if all(link & set(c) for link in links): return i
Feb. 9, 2015
Comments: