Question 43
Consider the function mystery() that takes strings X and Y as input. What will mystery('ABCDFGH','ACDFHBG') return? LCS(X,Y) returns the length of the longest common subsequence of X and Y.
10
9
8
7
Consider the function mystery() that takes strings X and Y as input. What will mystery('ABCDFGH','ACDFHBG') return? LCS(X,Y) returns the length of the longest common subsequence of X and Y.
10
9
8
7
Correct answer
9
Question 43 of 50 in the IIT Madras BS Programming, Data Structures and Algorithms using Python (PDSA) End Term paper sat on 21 Dec 2025, in the September 2025 term (Programming, Data Structures And Algorithms Using Python 18 Dec 25). It carries 4 marks.