Integer documented as "longestCommonSubsequenceLength"

Envoyé depuis mon smartphone Samsung Galaxy.
-------- Message d'origine --------De : paul womack <pwom...@papermule.co.uk> 
Date : 31.03.17  13:33  (GMT+01:00) À : Commons Users List 
<user@commons.apache.org> 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: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org

Reply via email to