comefrom: <doocs>0599.Minimum Index Sum of Two Lists_1.py
code: def findRestaurant( list1: List[str], list2: List[str]) -> List[str]:
      ans = []
      mp = {v: i for i, v in enumerate(list2)}
      mi = 2000
      for i, v in enumerate(list1):
          if v in mp:
              t = i + mp[v]
              if t < mi:
                  mi = t
                  ans = [v]
              elif t == mi:
                  ans.append(v)
      return ans
masked: def sample_funcname ( var_0 : List [ str ] , var_1 : List [ str ] ) -> List [ str ] :
      var_2 = [ ]
      var_5 = { var_3 : var_4 for var_4 , var_3 in enumerate ( var_1 ) }
      var_6 = 2000
      for var_4 , var_3 in enumerate ( var_0 ) :
          if var_3 in var_5 :
              var_7 = var_4 + var_5 [ var_3 ]
              if var_7 < var_6 :
                  var_6 = var_7
                  var_2 = [ var_3 ]
              elif var_7 == var_6 :
                  var_2.append ( var_3 )
      return var_2
  