Skip to content

Commit

Permalink
code for chapter 9
Browse files Browse the repository at this point in the history
  • Loading branch information
egonSchiele committed Mar 2, 2016
1 parent 26aa694 commit 2a01a0f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
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] = max(cell[i-1][j], cell[i][j-1])

0 comments on commit 2a01a0f

Please sign in to comment.