Skip to content

Conversation

rishima17
Copy link

Add BasicPrefixSum Algorithm

Implemented BasicPrefixSum.js to compute prefix sums of numeric arrays.

Example:

[2, 3, 5] → [2, 5, 10]

Validates input and throws TypeError for non-numeric elements.

Includes tests using Vitest.

Reference: Prefix sum – Wikipedia

Checklist:

Own work, not plagiarized

Follows CONTRIBUTING.md

Single algorithm file

Filename uses UpperCamelCase: BasicPrefixSum.js
Solved Issue no. 1783

@codecov-commenter
Copy link

codecov-commenter commented Oct 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.93%. Comparing base (08d8c6b) to head (1051fd2).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1833      +/-   ##
==========================================
+ Coverage   85.91%   85.93%   +0.01%     
==========================================
  Files         379      380       +1     
  Lines       19778    19802      +24     
  Branches     3015     3022       +7     
==========================================
+ Hits        16993    17017      +24     
  Misses       2785     2785              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@rishima17 rishima17 closed this by deleting the head repository Oct 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants