comefrom: <garvit244>163_1.py
code: def missingRange( A, lower, upper):
      if not A:
          return []
      
      result = []
      if A[0] != lower:
          end = A[0] - 1
          if end == lower:
              m_r = str(lower)
          else:
              m_r = str(lower) + "->" + str(end)
          result.append(m_r)
      
      for index in range(1, len(A)):
          if A[index] != A[index-1] + 1:
              start = A[index-1] + 1
              end = A[index] - 1
              if start == end:
                  m_r = str(start)
              else:
                  m_r = str(start) + "->" + str(end)
              result.append(m_r)
      
      if A[len(A) - 1] != upper:
          start = A[len(A)-1] + 1
          if start == upper:
              m_r = str(start)
          else:
              m_r = str(start) + "->" + str(upper)
          result.append(m_r)
      return result
masked: def sample_funcname ( var_0 , var_1 , var_2 ) :
      if not var_0 :
          return [ ]
      var_3 = [ ]
      if var_0 [ 0 ] != var_1 :
          var_6 = var_0 [ 0 ] - 1
          if var_6 == var_1 :
              var_8 = str ( var_1 )
          else :
              var_8 = str ( var_1 ) + "->" + str ( var_6 )
          var_3.append ( var_8 )
      for var_13 in range ( 1 , len ( var_0 ) ) :
          if var_0 [ var_13 ] != var_0 [ var_13 - 1 ] + 1 :
              var_14 = var_0 [ var_13 - 1 ] + 1
              var_6 = var_0 [ var_13 ] - 1
              if var_14 == var_6 :
                  var_8 = str ( var_14 )
              else :
                  var_8 = str ( var_14 ) + "->" + str ( var_6 )
              var_3.append ( var_8 )
      if var_0 [ len ( var_0 ) - 1 ] != var_2 :
          var_14 = var_0 [ len ( var_0 ) - 1 ] + 1
          if var_14 == var_2 :
              var_8 = str ( var_14 )
          else :
              var_8 = str ( var_14 ) + "->" + str ( var_2 )
          var_3.append ( var_8 )
      return var_3
  