Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
MAGIC solution in Speedy category for The Stone Wall by evarome10
def stone_wall(wall):
# Create list of lines from a string, rotate it by 90 degrees
wall_list = list(map(''.join, (zip(*wall.split('\n')[1:-1]))))
# Return index of line with minimal count of "#"
return wall_list.index(min(wall_list, key=lambda x: x.count("#")))
Feb. 7, 2019