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

Fenwick Tree Prefix Sum

เรียกดูบทเรียน Fenwick Tree Prefix Sum ภายใน Algorithmic Thinking and Complexity

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

Algorithmic Thinking and Complexity

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

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

Fenwick Tree Prefix Sum

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

Least You Need to Know: Fenwick Trees, Prefix Sums, and Low-Bit Jumps
Fenwick trees support prefix-sum queries and point updates in O(log n) by storing carefully chosen partial sums. The key bit trick is the low bit, which tells how large a range each index is responsible for.
เปิดบทเรียน