Shortest common supersequence: Difference between revisions
Content added Content deleted
Line 267: | Line 267: | ||
. |
. |
||
func$ cdr x$ . |
func$ cdr x$ . |
||
return substr x$ 2 |
return substr x$ 2 9999 |
||
. |
. |
||
func$ scs x$ y$ . |
func$ scs x$ y$ . |
||
Line 287: | Line 287: | ||
. |
. |
||
. |
. |
||
print scs "abcbdab" "bdcaba" |
print scs "abcbdab" "bdcaba" |
||
</syntaxhighlight> |
|||
{{out}} |
{{out}} |