HF RL Explorer

Heap Data Structure - Arbitrary Node Deletion

Heap Data Structure - Arbitrary Node Deletion: a task in Terminal-Lego-15k (Harbor dataset). Implement a max heap data structure in Python that supports deletion of any node (not just the root). This task tests your understanding of heap operations and the efficient algorithm for deleting…

The task

Implement a max heap data structure in Python that supports deletion of any node (not just the root). This task tests your understanding of heap operations and the efficient algorithm for deleting arbitrary elements from a heap.

Part of PrimeIntellect/Terminal-Lego-15k.