Open JauSingSing opened 1 year ago
var suffixArray = new GeneralizedSuffixArray([ [1,2,3,4], [2,3,4], [1,2,3,4] ]) suffixArray.longestCommonSubsequence() >>> [1,2,3,4]
expect [2, 3, 4]
Hello @JauSingSing, you are right there is something fishy there. I think I need to rewrite this code to fix those kind of cases and optimize it altogether, I wrote this quite a long time ago.
expect [2, 3, 4]