StudyMate
G

Trees & Heaps

2. Core Structures

2. CORE STRUCTURES

Trees & Heaps

Hierarchies and their maintenance: traversals, ordered operations, and heaps that answer the largest-so-far question in constant time in one place.

7 resources 0 labs
Heapify, heapsort and priority queues explained slowly and completely, the reference for every heap question you will meet.
VIDEOENFREE 51 min4.5 (64)
Binary search trees from the textbook that taught them, including deletion and the ordered-operations contract every implementation owes.
TEXTENFREE 30 min4.4 (62)
The Python heapq library applied to real interview problems, so you can stop reimplementing a heap by hand.
VIDEOENFREE 24 min4.4 (72)
A compact, exam-style explanation of tree terminology and structure, useful before the much longer coding tutorial that follows.
VIDEOENFREE 29 min4.3 (45)
Lowest common ancestor with binary lifting, the standard component inside most of the harder tree questions asked in interviews.
TEXTENFREE 25 min4.2 (40)
Heaps, priority queues and heapsort in one chapter, with the sift operations drawn step by step on paper.
TEXTENFREE 25 min4.2 (42)
An almost three-hour build of trees from first principles, covering traversals and BST operations with full code throughout.
VIDEOENFREE 120 min4.1 (66)