Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Golden Pyramid by Pouf
def count_gold(pyramid):
paths = list(pyramid[-1])
for v in pyramid[-2::-1]:
for i,g in enumerate(v):
paths[i] = max(paths[i]+g, paths[i+1]+g)
paths.pop()
return paths[0]
Oct. 25, 2014