Find Number From Factorial
CodeChefOpen on judge ↗
A factorial of a non-negative integer is defined as the product of all numbers from $1$ to $N$ inclusive. The factorial of $N$ is denoted by $N!$. By convention, $0! = 1$. For example, $5! = 5 \times 4 \times 3 \times 2 \times 1 = 120$. Your task is simple. You are given $N!$, where you have to find $N$. If multiple values exist for a single factorial, find the largest one. It is guara
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start