Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
4-liner: short no import solution in Creative category for Ground for the House by przemyslaw.daniel
def house(p, e=enumerate):
t = [(x, y.rfind('#'), y.find('#')) for x, y in e(p.split()) if '#' in y]
a, b, c = zip(*t) if t else [[0], [0], [1]]
return (max(a)-min(a)+1)*(max(b)-min(c)+1)
Sept. 24, 2018
Comments: