Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
(define $common-seqs
|
||||
(lambda [$xs $ys]
|
||||
(match-all [xs ys] [(list char) (list char)]
|
||||
[[(loop $i [1 $n] <join _ <cons $c_i ...>> _)
|
||||
(loop $i [1 ,n] <join _ <cons ,c_i ...>> _)]
|
||||
(map (lambda [$i] c_i) (between 1 n))])))
|
||||
|
||||
(define $lcs (compose common-seqs rac))
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
> (lcs "thisisatest" "testing123testing"))
|
||||
"tsitest"
|
||||
Loading…
Add table
Add a link
Reference in a new issue