go ahead... be a heretic | |
PerlMonks |
Re: Finding largest common subset in lists?by broquaint (Abbot) |
on Jun 05, 2003 at 09:45 UTC ( [id://263260]=note: print w/replies, xml ) | Need Help?? |
Update: fixed code to work with zby's case and hopefully any other case. Update: code won't work with duplicates in the second list Not exactly vastly mystical but this should do the trick (although it hasn't been thoroughly tested) You might also find some roughly applicable questions under Longest Common Substring. HTH
_________
In Section
Seekers of Perl Wisdom
|
|