Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
2-liner: numpy rot90 * 3 & enumerate the indexing solution in 3rd party category for The Highest Building by Stensen
import numpy as np, operator as o
highest_building = lambda B: max([[i+1, np.sum(b)] for i, b in enumerate(np.rot90(B, 3))], key=o.itemgetter(1))
Oct. 9, 2020