Skip to content

Factorial Trailing Zeroes #223

Open
Open
@santushtisharma10

Description

@santushtisharma10

Problem : Given an integer n, return the number of trailing zeroes in n!.

Note that n! = n * (n - 1) * (n - 2) * ... * 3 * 2 * 1.

Input: n = 5
Output: 1
Explanation: 5! = 120, one trailing zero.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions