Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
max(l) - min(l) + 1 solution in Creative category for Ground for the House by flpo
from operator import mul
def house(plan):
grounds = [(i, j) for i, row in enumerate(plan.split()) for j, cell in enumerate(row) if cell == '#']
return mul(*(max(l) - min(l) + 1 for l in zip(*grounds))) if grounds else 0
Sept. 3, 2018
Comments: