Longest common prefix: Difference between revisions
Content added Content deleted
(→Python: Functional: revert to original version because the other version may have bad complexity; but use min & max instead of sort) |
(→{{header|Python}}: Using an error?) |
||
Line 45: | Line 45: | ||
=={{header|Python}}== |
=={{header|Python}}== |
||
Note: this makes use of the error in <code>os.path.commonprefix</code> where it computes the longest common prefix regardless of directory separators rather than [[Find common directory path#Python|finding the common directory path]]. |
|||
<lang python>import os.path |
<lang python>import os.path |
||