[Fix #109] Added Solution for Easy Difference Array Problem (CSES 1651) #208
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue : #109
Summary
This PR adds the C++ solution for the "Easy" problem listed in the Difference Array readme: CSES 1651 - Range Update Queries.
Submission Proof
Link : https://cses.fi/paste/e46fc0236a874a04f11078/
Screenshot
Changes Made
Solution1.cpp: Implemented the solution using a Fenwick Tree (BIT) backed by the Difference Array concept.Complexity
Checklist
algos/range_queries/DifferenceArray/soln/.