Skip to content

Commit e28975c

Browse files
committed
Update for the Longest Common Subsequence algorithm
1 parent 53cd98b commit e28975c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DynamicProgramming/LCS.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ public static enum Direction {
88
};
99

1010
public class Paire {
11-
1211
public int cal;
1312
public Direction d;
1413

@@ -110,11 +109,12 @@ public static String doYouMean(String query, String[] text){
110109
return text[max];
111110
}
112111
public static void main(String[] args) {
112+
113113
System.out.println(LCS.run("abcdbdab","bdcaba" ));
114114

115115
String dbText[] = new String[]{"house of cards", "game of throne", "breaking bad"};
116116

117-
System.out.println("Do you mean " + LCS.doYouMean("gamz of trone", dbText));
117+
System.out.println("Do you mean " + LCS.doYouMean("ga of Zrone", dbText));
118118
}
119119

120120
}

0 commit comments

Comments
 (0)