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

Summation Triangle sucessful submission in C #470

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vcnovaes
Copy link

Your checklist for this pull request

🚨Please review the guidelines for contributing to this repository.

  • Make sure your files are in the right folder!
  • Make sure you add the extension of the file (.cpp, .python, .java, etc).
  • If your code is a solution for a code problem, please tell which one.
  • Make sure your code is working, test for a lot of cases.

Description

This is a solution for the problem summation triangle of the Code Wars site: Summation Triangle - Code Wars

image
Above you have the problem description!

In this code we have two solutions but only the pg_approach(unsigneed n) is accepted by CodeWars, the brute_force(int n) approach fails in terms of complexity, so it's not accepted by CodeWars, but it gives the right results
❤️ Thank you!

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