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

Difference Arrays

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

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

Algorithmic Thinking and Complexity

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

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

Difference Arrays

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

Least You Need to Know: Difference Arrays, Boundary Marking, and Range Updates
Difference arrays invert the prefix-sum idea: instead of storing cumulative totals directly, they store where changes begin and end. After marking update boundaries, one prefix sweep reconstructs the final values.
เปิดบทเรียน