mirror of
https://github.com/onyx-and-iris/grokking-algorithms.git
synced 2025-01-18 00:30:53 +00:00
fix var name
This commit is contained in:
parent
c6b0b0d276
commit
21a13acbff
@ -42,13 +42,13 @@ X = "fosh"
|
||||
Y = "fort"
|
||||
|
||||
logger.info(f"words: {X} {Y}")
|
||||
longest_substring = longest_common_subsequence(X, Y, len(X), len(Y))
|
||||
print(f"Longest common subsequence: {longest_substring}")
|
||||
longest_subsequence = longest_common_subsequence(X, Y, len(X), len(Y))
|
||||
print(f"Longest common subsequence: {longest_subsequence}")
|
||||
|
||||
|
||||
X = "fosh"
|
||||
Y = "fish"
|
||||
|
||||
logger.info(f"words: {X} {Y}")
|
||||
longest_substring = longest_common_subsequence(X, Y, len(X), len(Y))
|
||||
print(f"Longest common subsequence: {longest_substring}")
|
||||
longest_subsequence = longest_common_subsequence(X, Y, len(X), len(Y))
|
||||
print(f"Longest common subsequence: {longest_subsequence}")
|
||||
|
Loading…
Reference in New Issue
Block a user