<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div 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></div></div></blockquote><div><br class=""></div><div>Maybe I misunderstood what you meant by "longest common prefix”. </div><div>Presuming that A and B are arbitrary binary “strings”, then:</div><div><br class=""></div><div>- by common, I presumed something that is common for both A and B</div><div>- by prefix, I presumed something that precedes something else. In this context, this would be everything that A and B have in common, from left to right, before they start to differ.</div><div><br class=""></div><div>This lead me to believe that <<“Hello World”>> and <<“Hellao World”>> have only <<“Hell”>> that satisfy the above criteria.</div><div><br class=""></div><div>My apologies for being presumptuous.</div><div><br class=""></div>Kind regards</div><div><br class=""></div><div>V/</div><div><br class=""></div></div></body></html>