def trim_common_suffixes(strs, min_len=<NUM_LIT:0>):
if len(strs) < <NUM_LIT:2>:<EOL><INDENT>return <NUM_LIT:0>, strs<EOL><DEDENT>rev_strs = [s[::-<NUM_LIT:1>] for s in strs]<EOL>trimmed, rev_strs = trim_common_prefixes(rev_strs, min_len)<EOL>if trimmed:<EOL><INDENT>strs = [s[::-<NUM_LIT:1>] for s in rev_strs]<EOL><DEDENT>return trimmed, strs<EOL>
trim common suffixes

>>> trim_common_suffixes('A', 1)
(0, 'A')