parameters: (self, mat)
return_statement: return min(intersections)
docstring: :type mat: List[List[int]]
          :rtype: int
docstring_summary: :type mat: List[List[int]]
          :rtype: int
docstring_tokens: : type mat : List [ List [ int ]] : rtype : int
function: def smallestCommonElement(self, mat):
          """
          :type mat: List[List[int]]
          :rtype: int
          """
          # values could be duplicated in each row
          intersections = set(mat[0])
          for i in xrange(1, len(mat)):
              intersections &= set(mat[i])
              if not intersections:
                  return -1
          return min(intersections)
function_tokens: def smallestCommonElement ( self , mat ) : # values could be duplicated in each row intersections = set ( mat [ 0 ] ) for i in xrange ( 1 , len ( mat ) ) : intersections &= set ( mat [ i ] ) if not intersections : return - 1 return min ( intersections )