1 votes 1 votes There are two longest subsequences, not necessarily contiguous, common to the strings “ARTIFICIAL” and “INTELLIGENCE”. They are “IIC” and “TIC” which are of length three. Consider two strings S1 = “CORONAVIRUS” and S2 = “SARSCOVID”. Let x be the length of a longest common subsequence between S1 and S2 and let y be the number of such longest common subsequences of length x between S1 and S2. What is x + 5y? 13 14 15 16 Quantitative Aptitude general-aptitude + – rsansiya111 asked Dec 9, 2021 rsansiya111 900 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
3 votes 3 votes 1)CORONAVIRUS SARSCOVID 2) CORONA VI RUS SARSCOVID There are 2 possible longest subsequence with length 4. Hence. 4+2*5 14 Ans) option B _nirbha_ answered Dec 15, 2021 _nirbha_ comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes looking at any one string say coronavirus from right to left, look for common substrings; we get , rovi and covi. so x=4, and y=2; ans = 14 crazypicklerick answered Dec 13, 2021 crazypicklerick comment Share Follow See all 0 reply Please log in or register to add a comment.