-
Notifications
You must be signed in to change notification settings - Fork 20.9k
Description
What would you like to Propose?
Proposed Solution
Create a new package:
src/main/java/com/thealgorithms/prefixsum/
and add well-documented Java implementations of prefix sum–based algorithms .
For the initial contribution, I plan to add a basic Prefix Sum implementation
that demonstrates how to preprocess an array and answer range sum queries
efficiently. Future contributions can extend this package with more
prefix sum–based problems.
Issue details
The repository currently contains many algorithm categories such as dynamic programming, divide and conquer , sorting . However there is no dedicated category for prefix sum algorithm which is very important for solving questions based on range query, subarray problems efficiently.
Adding this would improve organization and help learners to understand this technique more clearly .
Additional Information
No response