We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 115b0b0 commit 038ff2dCopy full SHA for 038ff2d
DP-LCS.go
@@ -32,7 +32,7 @@ func LCS(str1 string, str2 string, l1 int, l2 int) [10][10]int {
32
var d2 [10][10]int //make([][]int, 10, 10)
33
34
// i= 0 j=0 len = 0 return 0
35
- if i == 0 || j == 0 {
+ if l1 == 0 || l2 == 0 {
36
return d2
37
}
38
0 commit comments