We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e663bf6 commit 8611cdaCopy full SHA for 8611cda
Doc/library/heapq.rst
@@ -58,6 +58,11 @@ functions, respectively.
58
The following functions are provided for min-heaps:
59
60
61
+.. function:: heapify(x)
62
+
63
+ Transform list *x* into a min-heap, in-place, in linear time.
64
65
66
.. function:: heappush(heap, item)
67
68
Push the value *item* onto the *heap*, maintaining the min-heap invariant.
@@ -77,11 +82,6 @@ The following functions are provided for min-heaps:
77
82
followed by a separate call to :func:`heappop`.
78
83
79
84
80
-.. function:: heapify(x)
81
-
- Transform list *x* into a min-heap, in-place, in linear time.
85
.. function:: heapreplace(heap, item)
86
87
Pop and return the smallest item from the *heap*, and also push the new *item*.
0 commit comments