summaryrefslogtreecommitdiff
path: root/progs/a967.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a967.py')
-rw-r--r--progs/a967.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/progs/a967.py b/progs/a967.py
new file mode 100644
index 0000000..e5909eb
--- /dev/null
+++ b/progs/a967.py
@@ -0,0 +1,4 @@
+import heapq as hq
+def heap_queue_largest(nums,n):
+ largest_nums = hq.nlargest(n, nums)
+ return largest_nums \ No newline at end of file