Question bank › Math
Dsa Math Medium

Digit Factorial Sum

Given a number N, find the sum of the factorials of its digits. Input: A single integer N (0 <= N <= 10^7). Output: An integer representing the sum of the factorials of the digits of N. Example: Input: 145 Output: 145 Explanation: 1! + 4! + 5! = 1 + 24 + 120 = 145.

Key concepts

mathfactorialdigit

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of Praxari's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.