Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Golden Pyramid by Moff
def count_gold(pyramid):
tr = [list(row) for row in pyramid]
for j in range(len(tr) - 2, -1, -1):
for i in range(len(tr[j])):
tr[j][i] += max(tr[j + 1][i], tr[j + 1][i + 1])
return tr[0][0]
July 23, 2015