Write a program to enter two words in two separate variables. Now find the longest common sub-part of the two words.
Python
Answers
Answered by
0
Answer:
Input : X = “GeeksforGeeks”, y = “GeeksQuiz”
Output : 5
Explanation:
The longest common substring is “Geeks” and is of length 5.
Input : X = “abcdxyz”, y = “xyzabcd”
Output : 4
Explanation:
The longest common substring is “abcd” and is of length 4.
Explanation:
plese mark me as brainliest
Answered by
0
Answer:
python sishenejieoslnwheu
Similar questions