Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
zip solution in Clear category for The Stone Wall by David_Jones
def stone_wall(wall):
i = narrowest = 11
for j, column in enumerate(zip(*wall.strip().splitlines())):
width = column.count('#')
if width < narrowest:
i, narrowest = j, width
return i
May 5, 2019