Codesignal Practice Test

CodeSignal Technical Assessment Matrix Traversal and Logic 4

Free · Instant Results

In a matrix DP problem for counting paths from top-left to bottom-right (moving only right or down), the recurrence is dp[i][j] = dp[i-1][j] + dp[i][j-1]. What are the base cases?
▶ Start Practice Test