Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Dynamic solution in Speedy category for Golden Pyramid by veky
def count_gold(pyramid):
p = tuple(map(list, pyramid))
for i in reversed(range(len(p))):
for j in range(i): p[i-1][j] += max(p[i][j:j+2])
return p[0][0]
May 8, 2014
Comments: