def trim_common_prefixes(strs, min_len=<NUM_LIT:0>):
trimmed = <NUM_LIT:0><EOL>if len(strs) > <NUM_LIT:1>:<EOL><INDENT>s1 = min(strs)<EOL>s2 = max(strs)<EOL>for i in range(len(s1) - min_len):<EOL><INDENT>if s1[i] != s2[i]:<EOL><INDENT>break<EOL><DEDENT>trimmed = i + <NUM_LIT:1><EOL><DEDENT><DEDENT>if trimmed > <NUM_LIT:0>:<EOL><INDENT>strs = [s[trimmed:] for s in strs]<EOL><DEDENT>return trimmed, strs<EOL>
trim common prefixes