Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What's the efficient way to write factorial function?

user-image
Question added by Deleted user
Date Posted: 2014/04/01
Ram Prakash M
by Ram Prakash M , Software Engineer , Calsoft Labs India Private Limited

Recursive Method is the best way

Maher Alsilwy
by Maher Alsilwy , CONSULTANT , B7R DESIGN WWW.B7RDES.COM

I guess the best way would be creating a separate function to calculate the factorial either using the regular way or recursively

More Questions Like This