Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
row.index(1) solution in Clear category for The Highest Building by martin.pilka
def highest_building(buildings):
for i, row in enumerate(buildings):
if sum(row) > 0:
return [row.index(1)+1, len(buildings)-i]
return [0, 0]
Feb. 11, 2019