Longest Common Suffix — Solution & Editorial
Mirror of common-prefix: shrink a candidate suffix against each word (or reverse everything and reuse the prefix method).
Complexity: O(total length)
Mirror of common-prefix: shrink a candidate suffix against each word (or reverse everything and reuse the prefix method).
Complexity: O(total length)