1.

Consider the following dynamic programming implementation of the minimum jumps problem: Which of the following “for” loops can be used instead of the inner for loop so that the output doesn’t change?

A. for(j = 1; j < arr[idx] + len; j++)
B. for(j = 0; j < arr[idx] – len; j++)
C. for(j = idx + 1; j < len && j <= arr[idx] + idx; j++)
D. No change is requiredView Answer
Answer» E.


Discussion

No Comment Found