Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Ground for the House by tom-tom
def house(plan):
def has_house(row):
return '*' if '#' in row else ' '
plan = plan.split()
return (len(''.join(map(has_house, plan)).strip()) *
len(''.join(map(has_house, zip(*plan))).strip()))
Sept. 9, 2018