Objective:
Solve all Easy problems in Range Queries → difference Array and add solutions in a consistent, well-commented format.
Folder:
algo/rangeQueries/differenceArray/soln/your_ name/
(If soln/ doesn't exist, create it.)
File naming:
Solution1.cpp, Solution2.cpp, Solution3.cpp, …
or any other language
Each solution must include (inside the .cpp as comments):
Short problem statement
Approach using prefix sums and difference array
Time & space complexity
Example I/O (optional)
Clean, compiling C++ code