ฝึกคณิตศาสตร์ไม่ต่อเนื่อง

Heap Invariants

เรียกดูบทเรียน Heap Invariants ภายใน Algorithmic Thinking and Complexity

1 บทเรียน · 5 คำถาม

Algorithmic Thinking and Complexity

Big-O, loop analysis, graph algorithms, invariants, and developer-focused discrete math.

1 บทเรียน · 410 คำถาม

Heap Invariants

1 บทเรียน · 5 คำถาม

Least You Need to Know: Heaps, Heap Invariants, and Fast Extremes
A heap stores items so the root is always the minimum or maximum according to a priority rule. It does not fully sort everything, but it lets you update the frontier quickly when you repeatedly need the next best element.
เปิดบทเรียน