Flipkart SDE Assessment (2025) | Deep Dive into Mathematics : Trailing Zeros | OA

Flipkart · Question · Posted Jun 2026

Question 1: Trailing Zeros Problem Statement Count the number of trailing 0s in the factorial of a given number N. Input Format The first line of input contains T - the number of test cases. It is followed by T lines, each containing an integer N. Output Format For each test case, print the number of trailing 0s in N!, separated by a new line. Constraints 1 <= T <= 10000 1 <= N <= 1015 Example Input: 3 2 ...

The full answer & interview discussion are available to premium members.

Log in Create a free account