code_problems icon indicating copy to clipboard operation
code_problems copied to clipboard

Summation Triangle sucessful submission in C

Open vcnovaes opened this issue 2 years ago • 0 comments

Your checklist for this pull request

🚨Please review the guidelines for contributing to this repository.

  • [X] Make sure your files are in the right folder!
  • [X] Make sure you add the extension of the file (.cpp, .python, .java, etc).
  • [X] If your code is a solution for a code problem, please tell which one.
  • [X] 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 :heart: Thank you!

vcnovaes avatar Oct 30 '22 15:10 vcnovaes