摘要: # 最长公共子序列问题 # 作用:求两个序列的最长公共子序列 # 输入:两个字符串数组:A和B # 输出:最长公共子序列的长度和序列 def LCS(A,B): print('输入字符串数组A',A) print('输入字符串数组B',B);print('\n') n = len(A) m = le 阅读全文
posted @ 2019-10-28 11:33 点灯非烛伊丶 阅读(1740) 评论(0) 推荐(0)