Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
itertools.product(*iterables) solution in Clear category for Break Rings by David_Jones
from itertools import product
def break_rings(rings):
return min(len(set(broken_rings)) for broken_rings in product(*rings))
June 20, 2019
Comments: