Factorize string into Lyndon words: Difference between revisions

m
→‎Python: made a proper header
m (→‎C++: made a proper header)
m (→‎Python: made a proper header)
Line 170:
</pre>
 
== [[{{header|Python]]}} ==
Duval's algorithm:<syntaxhighlight lang="python3">
def chen_fox_lyndon_factorization(s):
Line 202:
['011', '01', '0011', '00101101', '0010110011010011', '00101100110100101101001100101101', '001011001101001011010011001011001101001100101101', '001011001101', '001']
</syntaxhighlight>
 
 
=={{header|Rust}}==
7,805

edits