summaryrefslogtreecommitdiff
path: root/progs/a735.py
blob: 03a488e8e15dc091747af4e5ca651bd49f41a268 (plain)
1
2
3
4
5
import heapq as hq
def heap_assending(nums):
  hq.heapify(nums)
  s_result = [hq.heappop(nums) for i in range(len(nums))]
  return s_result