comefrom: <qiyuangong>163_Missing_Ranges_1.py
code: def findMissingRanges( nums, lower, upper):
      ranges = []
      prev = lower - 1
      for i in range(len(nums) + 1):
          if i == len(nums):
              curr = upper + 1
          else:
              curr = nums[i]
          if curr - prev > 2:
              ranges.append("%d->%d" % (prev + 1, curr - 1))
          elif curr - prev == 2:
              ranges.append("%d" % (prev + 1))
          prev = curr
      return ranges
masked: def sample_funcname ( var_0 , var_1 , var_2 ) :
      var_3 = [ ]
      var_5 = var_1 - 1
      for var_8 in range ( len ( var_0 ) + 1 ) :
          if var_8 == len ( var_0 ) :
              var_9 = var_2 + 1
          else :
              var_9 = var_0 [ var_8 ]
          if var_9 - var_5 > 2 :
              var_3.append ( "%d->%d" % ( var_5 + 1 , var_9 - 1 ) )
          elif var_9 - var_5 == 2 :
              var_3.append ( "%d" % ( var_5 + 1 ) )
          var_5 = var_9
      return var_3
  