##
Smallest number with at least n trailing zeroes in factorial
January 22, 2017

Given a number n. The task is to find the smallest number whose factorial contains at least n trailing zeroes. Examples: Input : n = 1 Output : 5 1!, 2!, 3!, 4! does not contain trailing zero. 5! = 120, which contains one trailing zero. Input : n = 6 Output : 26 26!… Read More »