Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
numpy.(sum, argmin) solution in 3rd party category for The Stone Wall by flpo
import numpy as np
def stone_wall(wall):
matrix = [[c == '#' for c in row] for row in wall.split()]
return int(np.sum(matrix, axis=0).argmin())
Sept. 7, 2018