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

Segment Tree Range Query

เรียกดูบทเรียน Segment Tree Range Query ภายใน Algorithmic Thinking and Complexity

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

Algorithmic Thinking and Complexity

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

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

Segment Tree Range Query

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

Least You Need to Know: Segment Trees, Range Queries, and Overlap Cases
Segment trees recursively partition an array into intervals so that range aggregates can be answered in O(log n) by combining a small number of stored interval results. The key interview idea is to reason about no overlap, partial overlap, and complete overlap.
เปิดบทเรียน