<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 30 Mar 2020, at 15:45, I Gusti Ngurah Oka Prinarjaya <<a href="mailto:okaprinarjaya@gmail.com" class="">okaprinarjaya@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi All,<div class=""><br class=""></div><div class="">Thank your very much for the answers,<br class=""><div class=""><br class=""></div><div class=""><a class="gmail_plusreply" id="plusReplyChip-0" href="mailto:v@micic.co.za" tabindex="-1">@Valentin Micic</a> , Your lcs function skipping the "World" word. I need "o" and "World" also count. </div><div class=""><br class=""></div><div class="">@Marc Worrel, Your function also similar with Valentine Micic's function.<br class=""><br class="">@Richard O'Keefe , I suppose substring or subsequence is same thing, but i think i am wrong, the point is, i need the function to also count </div><div class="">"o" from <<"Hellaao World">>, and "World" from <<"Hello World">><br class="">from example: lcs(<<"Hello World">>, <<"Hellaao World">>)</div></div></div></div></blockquote><div><br class=""></div><div>Ah, you needed really a substring function.</div><div>Then best is, indeed, use the C code or add memoization to the Erlang version.</div><div><br class=""></div><div>- Marc</div></div><br class=""></body></html>