I\'m doing a dynamic programming problem where each row is dependent on the previous row, i.e. the ith row is dependent on the i-1th row, beginning
i
i-1