Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sum of ap #3125

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Sum of ap #3125

wants to merge 2 commits into from

Conversation

xandersavvy
Copy link

Fixes #

Checklist:

  • 4 space indentation.
  • Coding conventions are followed.
  • Input is taken dynamically.
  • Sample Input / Output is added at the end of file.
  • Logic Documentation (Comments).
  • File names are correct.

Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!

Changes proposed in this pull request:

  • For the Sum Of Arithmetic Progression code, we can use the formula and bring down the time complexity from O(n) to O(1).

Languages Used:

  • C
  • CPP
  • Go
  • Java

Files Added:

We're happy to help you get this ready -- don't be afraid to ask for help.

Thanks!

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.

1 participant