Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Heap

Heap data structure.

First we implement a max heap, then a min heap and finally combine them together to provide an unified heap struct.