reorg and add code for second edition

This commit is contained in:
Aditya Bhargava
2023-08-09 08:20:19 -05:00
parent 9306432a1b
commit 933acafaf3
89 changed files with 18 additions and 117 deletions

View File

@@ -0,0 +1,7 @@
if word_a[i] == word_b[j]
# The letters match.
cell[i][j] = cell[i-1][j-1] + 1
else
# The letters don't match.
cell[i][j] = [cell[i-1][j], cell[i][j-1]].max
end