RE : Re: [text] Longest common subsequence wrong result?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

RE : Re: [text] Longest common subsequence wrong result?

Sébastien Piller
Integer documented as "longestCommonSubsequenceLength"


Envoyé depuis mon smartphone Samsung Galaxy.
-------- Message d'origine --------De : paul womack <[hidden email]> Date : 31.03.17  13:33  (GMT+01:00) À : Commons Users List <[hidden email]> Objet : Re: [text] Longest common subsequence wrong result?
Sébastien Piller wrote:
> Hi all,
> If I call
> new LongestCommonSubsequence ().apply ("xxx","yyy")
> I get 0 (correct)
> If I call
> new LongestCommonSubsequence ().apply ("Gandalf","Sauron")
> I get 2 which looks incorrect to me (should have got 1 since there is no sequence of 2 chars on both strings. Is it a bug or an expected behavior?

What is the return type of the method?

  BugBear


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]