comefrom: <doocs>0014.Longest Common Prefix_1.py
code: def longestCommonPrefix( strs: List[str]) -> str:
      n = len(strs)
      if n == 0:
          return ''
      for i in range(len(strs[0])):
          for j in range(1, n):
              if len(strs[j]) <= i or strs[j][i] != strs[0][i]:
                  return strs[0][:i]
      return strs[0]
masked: def sample_funcname ( var_0 : List [ str ] ) -> str :
      var_4 = len ( var_0 )
      if var_4 == 0 :
          return ''
      for var_8 in range ( len ( var_0 [ 0 ] ) ) :
          for var_10 in range ( 1 , var_4 ) :
              if len ( var_0 [ var_10 ] ) <= var_8 or var_0 [ var_10 ] [ var_8 ] != var_0 [ 0 ] [ var_8 ] :
                  return var_0 [ 0 ] [ : var_8 ]
      return var_0 [ 0 ]
  