Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
lcs=: dyad define
|
||||
|.x{~ 0{"1 cullOne^:_ (\: +/"1)(\:{."1) 4$.$. x =/ y
|
||||
)
|
||||
|
||||
cullOne=: ({~[: <@<@< [: (i. 0:)1,[: *./[: |: 2>/\]) :: ]
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
mergeSq=: ;@}: ~.@, {.@;@{. ,&.> 3 {:: 4&{.
|
||||
common=: 2 2 <@mergeSq@,;.3^:_ [: (<@#&.> i.@$) =/
|
||||
lcs=: [ {~ 0 {"1 ,&$ #: 0 ({:: (#~ [: (= >./) #@>)) 0 ({:: ,) common
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
'thisisatest' lcs 'testing123testing'
|
||||
tsitest
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
longest=: ]`[@.(>&#)
|
||||
upd=:{:@[,~ ({.@[ ,&.> {:@])`({:@[ longest&.> {.@])@.(0 = #&>@{.@[)
|
||||
lcs=: 0{:: [: ([: {.&> [: upd&.>/\.<"1@:,.)/ a:,.~a:,~=/{"1 a:,.<"0@[
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
'1234' lcs '1224533324'
|
||||
1234
|
||||
|
||||
'thisisatest' lcs 'testing123testing'
|
||||
tsitest
|
||||
|
|
@ -0,0 +1 @@
|
|||
lcs=:;(($:}.) longest }.@[ $: ])`({.@[,$:&}.)@.(=&{.)`((i.0)"_)@.(+.&(0=#))&((e.#[)&>/) ;~
|
||||
Loading…
Add table
Add a link
Reference in a new issue