Summer Sale is Live! Unlock 40% OFF on All Job-Oriented Training Programs – Limited Time Only! Offer Ending in
D
H
M
S
Get Now
Problem Submissions Solution

Smallest factorial number

Difficulty: Medium

Acceptance: %

Points: 30.00

Given a number n. The task is to find the smallest number whose factorial contains at least n trailing zeroes.

Topics

Companies

Articles

Examples:

Expected Time Complexity: O(log2 N * log5 N).

Expected Auxiliary Space: O(1).

Constraints:
  • 1 <= n <= 10^4
Companies:
Apple Visa Walmart
Topics:
Searching Algorithms
Locked Content
Access Restricted: Please Login to access the code editor and test cases.