Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
fcn lcs(a,b){
|
||||
if(not a or not b) return("");
|
||||
if (a[0]==b[0]) return(a[0] + self.fcn(a[1,*],b[1,*]));
|
||||
return(fcn(x,y){if(x.len()>y.len())x else y}(lcs(a,b[1,*]),lcs(a[1,*],b)))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue