Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
x0, y0 = positions.pop('Y') solution in Clear category for Compass, Map and Spyglass by flpo
def navigation(seaside):
positions = {cell: (i, j) for i, row in enumerate(seaside) for j, cell in enumerate(row) if cell}
x0, y0 = positions.pop('Y')
return sum(max(abs(x0 - x1), abs(y0 - y1)) for x1, y1 in positions.values())
Sept. 5, 2018
Comments: