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

Recursion Exercises: Add total integers exercise

Open JoshDevHub opened this issue 6 months ago • 0 comments

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 #total_integers. This method takes in an array, which may be nested, and recursively counts the number of integers inside the structure.

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 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
  • [x] If this PR addresses an open issue, it is linked in the Issue section
  • [x] If this PR includes changes to exercises, they are also changed in the solutions folder.

JoshDevHub avatar Jul 06 '25 01:07 JoshDevHub