|
|||
Longest Common SubsequenceSequence 1: Sequence 2: Given two sequences of characters, print the length of the longest common subsequence of both sequences.
For example, the longest common subsequence of the sequences “ Input SpecificationThe input consists of pairs of lines. The first line of a pair contains the first string, and the second line contains the second string. Each string is on a separate line and consists of at most 1000 characters. Output SpecificationFor each subsequent pair of input lines, output a line containing one integer number satisfying the criterion stated above. Sample Input
Output for Sample Input
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |