question 1
How many cells does the method fill to compare chair and train?
the answer, and why
the answer is A
5 rows of 5 cells, a row for each letter of chair. The first row and column are written at the start.
if you chose another
- That counts the first row and column too, which are written at the start, not filled.
- That is the longest common subsequence, not the cells.
- That adds the letters, but each row fills a cell for each letter of train.