ruby-exercises
ruby-exercises copied to clipboard
Recursion Exercises: Add exercises for pascal's triangle
Because
I'm working on adding Recursion Exercises to this repo because we determined it'd be beneficial to have this content in-house. See the linked issue for more information.
This PR
- Adds an exercise, tests, and a solution for a method called
#pascal. This method takes in a positive integer representing the row of Pascal's triangle that will be returned.
Issue
Related to #114
Additional Information
Pull Request Requirements
- [x] I have thoroughly read and understand The Odin Project Contributing Guide
- [x] The title of this PR follows the
location of change: brief description of changeformat, e.g.Data types exercise: Update spec files - [x] The
Becausesection summarizes the reason for this PR - [x] The
This PRsection has a bullet point list describing the changes in this PR - [x] If this PR addresses an open issue, it is linked in the
Issuesection - [x] If this PR includes changes to exercises, they are also changed in the
solutionsfolder.