rename vars

This commit is contained in:
2024-01-18 01:18:01 +00:00
parent 2ad10efb47
commit 73dc3210e5
3 changed files with 13 additions and 13 deletions

View File

@@ -42,13 +42,13 @@ X = "fosh"
Y = "fort"
logger.info(f"words: {X} {Y}")
longest_subsequence = longest_common_subsequence(X, Y, len(X), len(Y))
print(f"Longest common subsequence: {longest_subsequence}")
length = longest_common_subsequence(X, Y, len(X), len(Y))
print(f"Longest common subsequence: {length}")
X = "fosh"
Y = "fish"
logger.info(f"words: {X} {Y}")
longest_subsequence = longest_common_subsequence(X, Y, len(X), len(Y))
print(f"Longest common subsequence: {longest_subsequence}")
length = longest_common_subsequence(X, Y, len(X), len(Y))
print(f"Longest common subsequence: {length}")

View File

@@ -45,13 +45,13 @@ X = "fish"
Y = "vish"
logger.info(f"words: {X} {Y}")
longest_substring = longest_common_substring(X, Y, len(X), len(Y))
print(f"Longest common substring: {longest_substring}")
length = longest_common_substring(X, Y, len(X), len(Y))
print(f"Longest common substring: {length}")
X = "vista"
Y = "hish"
logger.info(f"words: {X} {Y}")
longest_substring = longest_common_substring(X, Y, len(X), len(Y))
print(f"Longest common substring: {longest_substring}")
length = longest_common_substring(X, Y, len(X), len(Y))
print(f"Longest common substring: {length}")