Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
LCS(a, b){
|
||||
x := i := 1
|
||||
while StrLen(x)
|
||||
Loop % StrLen(a)
|
||||
IfInString, b, % x := SubStr(a, i:=StrLen(x)=1 ? i+1 : i, n:=StrLen(a)+1-A_Index)
|
||||
res := StrLen(res) > StrLen(x) ? res : x
|
||||
return res
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
MsgBox % LCS("thisisatest", "testing123testing")
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
LCS(a, b){
|
||||
while pos := RegExMatch(a "`n" b, "(.+)(?=.*\R.*\1)", m, pos?pos+StrLen(m):1)
|
||||
res := StrLen(res) > StrLen(m1) ? res : m1
|
||||
return res
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
MsgBox % LCS("thisisatest", "testing123testing")
|
||||
Loading…
Add table
Add a link
Reference in a new issue