โ† Amazon questions

Check if x! is divisible by y

Filed under Amazon

Implement a function bool isFactorialDivisible(int x, int y) that returns true if the factorial of x (x!) is divisible by y. Note that x! can be extremely large, so it should not be computed directly.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.