1.

Consider the following code: Which of the following lines should be inserted to complete the above code?

A. t2[i] = get_min(t2[i-1]+spent[1][i], t1[i-1]+reach[0][i-1]+spent[1][i])
B. t2[i] = get_min(t2[i-1]+spent[1][i], t1[i-1]+spent[1][i])
C. t2[i] = get_min(t2[i-1]+spent[1][i], t1[i-1]+reach[0][i-1])
D. none of the mentionedView Answer
Answer» B. t2[i] = get_min(t2[i-1]+spent[1][i], t1[i-1]+spent[1][i])


Discussion

No Comment Found