Also called LCS and Longest common subsequence, by dynamic programming.
fresh numbers
The test's questions that a run answers, asked again on new numbers whenever you like. The answer, its working and the reason for every other choice come from longest common subsequence's own run on the numbers shown.
choose one
1question 1
How many cells does the method fill to compare mouse and lemon?
the answer, and why
the answer is D
5 rows of 5 cells, a row for each letter of mouse. The first row and column are written at the start.
if you chose another
AThat counts the first row and column too, which are written at the start, not filled.
BThat is the longest common subsequence, not the cells.
CThat adds the letters, but each row fills a cell for each letter of lemon.