Hacktoberfest-Mathematics icon indicating copy to clipboard operation
Hacktoberfest-Mathematics copied to clipboard

Add tail recursive version of the factorial function

Open enimiste opened this issue 5 years ago • 0 comments

This version doesn't causes the StackOverflowException when n is big Long type is used in the return type to avoid int overflow with big multiplications.

enimiste avatar Oct 23 '19 23:10 enimiste