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

Sparse Table Rmq

เรียกดูบทเรียน Sparse Table Rmq ภายใน Algorithmic Thinking and Complexity

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

Algorithmic Thinking and Complexity

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

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

Sparse Table Rmq

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

Least You Need to Know: Sparse Tables, RMQ, and Static Idempotent Queries
Sparse tables preprocess answers for intervals of length power of two. They shine on static arrays and especially on idempotent operations like minimum, where overlapping power-of-two blocks can answer a query in O(1).
เปิดบทเรียน