Skip to content
Please note that GitHub no longer supports your web browser.

We recommend upgrading to the latest Google Chrome or Firefox.

Learn more
Permalink
Browse files

Modified longest_common_ssubsequence.py for successful doctests (#1332)

  • Loading branch information...
jpg-130 authored and poyea committed Oct 11, 2019
1 parent e678879 commit 67291a5bce1f5761ce2d6978193ec4a3b1f6dcc6
Showing with 4 additions and 3 deletions.
  1. +4 −3 dynamic_programming/longest_common_subsequence.py
@@ -76,6 +76,7 @@ def longest_common_subsequence(x: str, y: str):
expected_subseq = "GTAB"

ln, subseq = longest_common_subsequence(a, b)
assert expected_ln == ln
assert expected_subseq == subseq
print("len =", ln, ", sub-sequence =", subseq)
## print("len =", ln, ", sub-sequence =", subseq)
import doctest

doctest.testmod()

0 comments on commit 67291a5

Please sign in to comment.
You can’t perform that action at this time.