Longest Common Subsequence
1092 演算法
題目說明
Please find the length of a longest common subsequence of two given nonempty strings.
Input
Each test case contains two nonempty strings, separated by whitespace character(s)
and consisting of characters ‘a’ and ‘b’. Two consecutive test cases are separated by
whitespace character(s). The input terminates with EOF.
Output
For each test case, output the length of a longest common subsequence of the two
given strings.
Technical Specification
- There are at most 10 test cases.
- Each string to be processed is at most 100 in length.
參考解法
1 |
|
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment
GitalkFacebook Comments