Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Golden Pyramid by hamukazu
def count_gold(a,i=0,j=0):
if len(a)==i:
return 0
return a[i][j]+max(count_gold(a,i+1,j),count_gold(a,i+1,j+1))
May 1, 2014
Comments: