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. None of the mentioned
Answer» E.


Discussion

No Comment Found