Skip to content

Implemented Easy Prefix Sum Solutions (Issue #12) - #20

Merged
ScorchedPearl merged 1 commit into
opencodeiiita:mainfrom
adityashirsatrao007:solve-issue-12
Dec 26, 2025
Merged

Implemented Easy Prefix Sum Solutions (Issue #12)#20
ScorchedPearl merged 1 commit into
opencodeiiita:mainfrom
adityashirsatrao007:solve-issue-12

Conversation

@adityashirsatrao007

@adityashirsatrao007adityashirsatrao007 commented Dec 26, 2025

Copy link
Copy Markdown
Contributor

Issue : #12

Added solutions for Range Sum Query - Immutable and Running Sum of 1d Array

CopilotAI review requested due to automatic review settings December 26, 2025 09:28
@OpenGitBot

Copy link
Copy Markdown

Hey @adityashirsatrao007

PR Template is not followed. Kindly follow the template & edit it again for consideration as a valid pull request.

Thanks for contributing in OpenCode'25 ✨✨!

Correct Tempelate:
Issue : #<Issue_Number>

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds two C++ solutions for prefix sum problems as part of Issue #12: Running Sum of 1d Array (LeetCode 1480) and Range Sum Query - Immutable (LeetCode 303). Both implementations use the prefix sum technique to efficiently compute cumulative sums.

Key Changes:

  • Added RunningSum1dArray.cpp implementing a running sum calculator using prefix sum approach
  • Added RangeSumQueryImmutable.cpp implementing a range sum query class with O(1) query time

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

FileDescription
RunningSum1dArray.cppImplements running sum using prefix sum technique with O(N) time complexity
RangeSumQueryImmutable.cppImplements range sum queries using precomputed prefix sum array with O(1) query time

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@adityashirsatrao007

Copy link
Copy Markdown
ContributorAuthor

Apologies for the oversight. I have updated the PR description to strictly follow the required template format.

@OpenGitBot

Copy link
Copy Markdown

Hey @adityashirsatrao007

Thanks for opening this PR 🚀. Mentor will review your pull request soon and till then, keep contributing and stay calm.

Thanks for contributing in OpenCode'25 ✨✨!

@ScorchedPearl
ScorchedPearl merged commit 4234c95 into opencodeiiita:mainDec 26, 2025
6 checks passed
@OpenGitBot

Copy link
Copy Markdown

Hey @adityashirsatrao007

Your PR has been merged 🥳🥳 and you have earned 20 points.

Thanks for contributing in OpenCode'25✨✨

ishanrajsingh pushed a commit to ishanrajsingh/CodeCraft that referenced this pull request Dec 27, 2025
Sign up for freeto 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.

4 participants

@adityashirsatrao007@OpenGitBot@ScorchedPearl