🛠️ Steven Gong

Search

SearchSearch
  • Difference Array
  • Related

Sep 07, 2024, 1 min read

Difference Array

Used to do O(1) range updates.

Wow, very cool, I ran into this problem for the first time through https://dmoj.ca/problem/bts24p2 https://www.geeksforgeeks.org/difference-array-range-update-query-o1/

Use it in combination with Prefix Array.

Related

  • Prefix Array

Graph View

Backlinks

  • Prefix Array

Created with Quartz, © 2025

  • Blog
  • LinkedIn
  • Twitter
  • GitHub