---
title: "Discussion on \"Difference Array Technique\" | Hashnode"
description: "Discussion on \"Difference Array Technique\". This is a difference array technique for competitive programming. It can be used to range queries for updating array in range (l, r)."
url: "https://hashnode.com/posts/difference-array-technique/63fe02cc6c20e060b45e323e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Difference Array Technique](https://teckbakers.hashnode.dev/difference-array-technique?utm_source=hashnode&utm_medium=feed)

This is a difference array technique for competitive programming. It can be used to range queries for updating array in range (l, r).

Feb 28, 2023 · 6 min read · teckbakers.hashnode.dev  
Updated Feb 24, 2024  
Read the article

-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#competitive-programming](https://hashnode.com/tag/competitive-programming)
-   [#code](https://hashnode.com/tag/code)
-   [#iratherfear](https://hashnode.com/tag/iratherfear)
-   [#difference-array](https://hashnode.com/tag/difference-array)

## Written by

[Aman Nadaf](https://hashnode.com/@iRatherFear)

@iRatherFear

  
[View profile](https://hashnode.com/@iRatherFear)

Competitve Programmer

I am a competitive programmer, here to write blogs &amp; share knowledge.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
