#challenge
💻 Is the Input Factorial of an Integer? | #easy
Create a function that checks if a given integer is exactly the factorial of an integer or not. true if it is, false otherwise.
Examples:
#interview
💻 Is the Input Factorial of an Integer? | #easy
Create a function that checks if a given integer is exactly the factorial of an integer or not. true if it is, false otherwise.
Examples:
isFactorial(2) ➞ true🏆 Leave your solutions in the comments. The solution will be posted below in a couple of hours 👇
// 2 = 2 * 1 = 2!
isFactorial(27) ➞ false
isFactorial(24) ➞ true
// 24 = 4 * 3 * 2 * 1 = 4!
#interview