Longest common prefix: Difference between revisions

→‎{{header|Python}}: Using an error?
(→‎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:
 
=={{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
 
Anonymous user