3 Commits

Author SHA1 Message Date
spainn
11a2de7473 Update 01_longest_common_subsequence.py (#277)
The original code was creating a 4x5 grid instead of 5x4.  I also made it display by row.

Co-authored-by: WhileRested <148598154+WhileRested@users.noreply.github.com>
2024-03-22 15:03:28 -05:00
spainn
5d068870bf Update 02_longest_common_substring.py (#276)
The original code did not work correctly out of the box.  It generated a (4,5) grid instead of a (5,4) grid as the book's answer grid shows.  Also on line 10 of my code I changed `dp_table[i-1][i-1] + 1` to `dp_table[i-1][j-1] +1`.  I also updated the display to display by row.

Co-authored-by: WhileRested <148598154+WhileRested@users.noreply.github.com>
2024-03-22 15:02:03 -05:00
Aditya Bhargava
933acafaf3 reorg and add code for second edition 2023-08-09 08:20:19 -05:00