Question:
LCS WITH 3 STRINGS
Given 3 strings ,the task is to find the longest common sub-sequence in all three given sequences.
Input Format:
First line contains first string . Second line contains second string. Third line contains the third string.
Constraints:
The length of all strings is |s|< 200
Output Format
Output an integer denoting the length of longest common subsequence of above three strings.
Sample Input
GHQWNV
SJNSDGH
CPGMAH
Sample Output
2
attempt :
https://ide.codingblocks.com/s/49588
passing only the first test case.