def max_difference(test_list):
  
  temp = [abs(b - a) for a, b in test_list]
  res = max(temp)
  return (res) 
def heap_queue_largest(nums,n):
  import heapq as hq
  
  largest_nums = hq.nlargest(n, nums)
  return largest_nums