Skip to content

Conversation

@1vk3y
Copy link

@1vk3y 1vk3y commented Oct 19, 2024

Add a method that solves the problem: using recursion combined with match to implement factorial.

@mo8it
Copy link
Contributor

mo8it commented Oct 19, 2024

This isn't Haskell :P
In most cases, iterative solutions are more effecient than recursive ones. I don't want to recommend recursion where it isn't needed.

@mo8it mo8it closed this Oct 19, 2024
@1vk3y
Copy link
Author

1vk3y commented Oct 19, 2024

Touché. :D

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.

2 participants