Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
LISPY solution in Clear category for Golden Pyramid by Tinus_Trotyl
def count_gold(pyramid, i=0):
if pyramid[1:]:
return pyramid[0][i] + max(count_gold(pyramid[1:], i), count_gold(pyramid[1:], i+1))
return pyramid[0][i]
July 29, 2017
Comments: