Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Functional DP solution in Creative category for Golden Pyramid by nickie
count_gold=lambda p:__import__("functools").reduce(lambda D,r:[x+max(D[j],D[j+1])
for j,x in enumerate(r)],p[-2::-1],list(p[-1]))[0]
April 30, 2014
Comments: