def longestCommonPrefix(self, strs):
a = zip(*strs)
pre = 
for tup in a:
if len(set(tup)) !=1:
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.