summaryrefslogtreecommitdiff
path: root/progs/a735.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a735.py')
-rw-r--r--progs/a735.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/a735.py b/progs/a735.py
new file mode 100644
index 0000000..03a488e
--- /dev/null
+++ b/progs/a735.py
@@ -0,0 +1,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 \ No newline at end of file