Factorize string into Lyndon words: Difference between revisions
Content added Content deleted
(Add Scala implementation) |
(→C: marked incorrect) |
||
Line 15: | Line 15: | ||
== [[C]] == |
== [[C]] == |
||
{{incorrect|C|missing test cases and output}} |
|||
Copied from <ref name=":0" />, under Creative Commons Attribution Share Alike 4.0 International License.<syntaxhighlight lang="c"> |
Copied from <ref name=":0" />, under Creative Commons Attribution Share Alike 4.0 International License.<syntaxhighlight lang="c"> |
||
vector<string> duval(string const& s) { |
vector<string> duval(string const& s) { |
||
Line 37: | Line 38: | ||
} |
} |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
=={{header|MATLAB}}== |
=={{header|MATLAB}}== |