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