1.

Consider the following dynamic programming implementation of the longest common subsequence problem.Which of the following lines completes the below code?

A. Arr[i][j] = 1 + arr[i][j].
B. Arr[i][j] = 1 + arr[i 1][j 1].
C. Arr[i][j] = arr[i 1][j 1].
D. Arr[i][j] = arr[i][j].
Answer» C. Arr[i][j] = arr[i 1][j 1].


Discussion

No Comment Found