summaryrefslogtreecommitdiff
path: root/progs/a967.py
blob: e5909ebfa86df9ab2a0bdac5ffaaca92ec954e3f (plain)
1
2
3
4
import heapq as hq
def heap_queue_largest(nums,n):
  largest_nums = hq.nlargest(n, nums)
  return largest_nums