将所有可能的LCS存储在列表中并最后返回

时间:2019-02-08 02:08:49

标签: recursion dynamic-programming lcs

我想将最后找到的所有LCS作为列表返回

我能够打印所有可能的LCS

// grab version property, split on '-' to remove '-SNAPSHOT', and then tokenize
def versionParts = sh(returnStdout: true, script: "./gradlew properties -q | grep 'version:' | awk '{print \$2}'").split("-")[0].tokenize(".")

// sometimes this is null??
def majorVersion = versionParts[0]

返回类型应为List,它仅返回所有可能的LCS的列表

0 个答案:

没有答案