trailing 0's in factorial hundred The solution is wrong. The correct answer is 21 becuase the factors of squares of 5 ( 25,50,75) are already covered in the factors of 5.
Chandrashekar Laveti
I guess that 24 is correct .. Because 5 is only taken once when u consider the factors of 5 .... in 25,50 and 75
Rakesh Gupta
Hi Rakesh,
Chandrashekar Laveti
Just to add to discussion, there is a mechanical way for calculating trailing zeroes in a n!.There is a explicit formula for that....
Arun Iyer
The correct answer is 23! The reason is that the zeros generated by 50 are alreday accounted for.
one
Fog Creek Home |