Dynamic Programming21 sections · 916 units
Open in CourseQuiz: LCS Concepts
Knowledge check
Check Your Understanding
In LCS of strings A and B, what does dp[i][j] represent?
- A.Number of common characters
- B.Whether A[i] equals B[j]
- C.The character at position i+j
- D.Length of LCS of A[0..i-1] and B[0..j-1]