ruby-exercises icon indicating copy to clipboard operation
ruby-exercises copied to clipboard

Recursion Exercises: Add new factorial exercise

Open JoshDevHub opened this issue 1 year ago • 1 comments

Because

We want to bring the recursion exercises done in the recursion lesson in house.

Link the curriculum issue for this: https://github.com/TheOdinProject/curriculum/issues/27265#issuecomment-2011689860

This PR

  • Adds new exercise for calculating a factorial with recursion.

Issue

Related to #114

Additional Information

Leaving this as a draft for the time being. The main question I'd have is: are we okay with this organization / structure, or do we want to approach this differently?

Currently all the exercises in this repo are for "basic ruby." It might make sense to create an entirely new repo for these new exercises, which is the same way we do the custom enumerables project.

If we do leave them in this repo, is the way I have them organized here okay? Definitely interested in other maintainer input on the approach here.

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 change format, e.g. Data types exercise: Update spec files
  • [x] The Because section summarizes the reason for this PR
  • [x] The This PR section has a bullet point list describing the changes in this PR
  • [ ] If this PR includes changes that needs to be updated on the solutions branch, I have created another PR (and linked it to this PR).

JoshDevHub avatar Mar 23 '24 17:03 JoshDevHub

After discussing with the maintainer team, we agreed to go ahead with this organization, so I've opened this up for review.

JoshDevHub avatar Apr 21 '24 21:04 JoshDevHub