Using results for the first ( i - 1 ) elements , calculate the result for the ith element
for i in range ( 1 , n ) : NEW_LINE INDENT minimum = 10 ** 9 NEW_LINE for j in range ( small , large + 1 ) : NEW_LINE DEDENT