Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
quick path solution in Clear category for Compass, Map and Spyglass by MrPod
def navigation(seaside):
search = lambda h: [[i, row.index(h)] for i, row in enumerate(seaside) if row.count(h)][0]
res = lambda a, b: max(abs(a[i] - b[i]) for i in [0, 1])
y = [search(i) for i in 'YCMS']
return sum(res(y[0], i) for i in y[1:])
Sept. 5, 2018