ID EN
Heapq

heapify

Python 3.11

Transform list x into a heap, in-place, in linear time.

Syntax

PYTHON
heapq.heapify(x)