You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
calcFactorial(n) in Factorial.js must return integer value instead of a string value #1092
As I can see, the current implementation of calculating the factorial of a number returns a string like "The factorial of 5 is 120" instead this function must return an integer value of 120, so that we can use this function in other algorithms to calculate factorial without having to write logic to calculate factorial and thereby increasing code redundancy in this repo. Currently, I working on an algorithm that requires me to calculate the factorial of a number but I am unable to use calcFactorial(n) from Factorial.js as it returns a string.
changed the title [-]calcFactorial(n) in Factorial.js must return integer value string value[/-][+]calcFactorial(n) in Factorial.js must return integer value instead of a string value[/+]on Sep 6, 2022
Activity
[-]calcFactorial(n) in Factorial.js must return integer value string value[/-][+]calcFactorial(n) in Factorial.js must return integer value instead of a string value[/+]appgurueu commentedon Sep 6, 2022
Agreed. Feel free to fix it.